Code Monkey home page Code Monkey logo

kinect-unity's Introduction

Hi there 👋

kinect-unity's People

Contributors

h37kouya avatar toson77 avatar

Stargazers

 avatar

Forkers

e-emad

kinect-unity's Issues

startで宣言したcolorがnullでござる

NullReferenceException: Object reference not set to an instance of an object
Changecolor.GetColor (System.Int32 count, System.Int32 countMax) (at Assets/PatternEffect/scripts/Changecolor.cs:79)
Changecolor+d__5.MoveNext () (at Assets/PatternEffect/scripts/Changecolor.cs:54)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at C:/buildslave/unity/build/Runtime/Export/Coroutines.cs:17)

OnTriggerEnterしんでるーーー

playercontroll_2.cs

    void OnTriggerEnter(Collider other)
    {
        Debug.Log(other.gameObject.name);
        // ぶつかったオブジェクトが収集アイテムだった場合
        if (other.gameObject.CompareTag("Pick up"))
        {
            // その収集アイテムを非表示にします
            other.gameObject.SetActive(false);

            // スコアを加算します
            score = score + 1;
           
            // UI の表示を更新します
            SetCountText();
        }
    }

    // UI の表示を更新する(ぶつかったとき)
    void SetCountText()
    {
        int st = score;
        // スコアの表示を更新
        scoreText.text = "Count:"+ st.ToString();

       


        // すべての収集アイテムを獲得した場合
        if (score >= 12)
        {
            nowTime = firstTime - nowTime;
            GameOver(nowTime.ToString() + "秒でクリア!", "Score:12");
        }
    }```

バグ取れん

NullReferenceException: Object reference not set to an instance of an object
PlayerControll_2.Update () (at Assets/PatternEffect/scripts/PlayerControll_2.cs:192)

192行目
Vector3 posPointMan = manager.GetUserPosition(playerID);

ゲームモード1が動かない!

What's Happen!!

球の回転方向が制御できていない。

要検証すべき点

  • Unityゲームエディタ内の変数。
    また、全てのファイルの関節の変数は要チェックしたほうがいい。
  • 現実の環境による可能性がある。(ほんの少し)

待機シーンからgameシーンに移るときkinectmanagerエラー

メモリ関連だよなこれ...つら

System.Buffer.memcpy4 (System.Byte* dest, System.Byte* src, System.Int32 size) (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
System.Buffer.Memcpy (System.Byte* dest, System.Byte* src, System.Int32 size) (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
System.String.memcpy (System.Byte* dest, System.Byte* src, System.Int32 size) (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
(wrapper unknown) KinectWrapper+DepthBuffer.PtrToStructure(intptr,object)
KinectWrapper.PollDepth (System.IntPtr depthStreamHandle, System.Boolean isNearMode, System.UInt16[]& depthPlayerData) (at Assets/KinectScripts/KinectWrapper.cs:812)
KinectManager.Update () (at Assets/KinectScripts/KinectManager.cs:1112)```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.