예제 #1
0
 void HandleOnUserTrackerUpdateEvent(nuitrack.UserFrame frame)
 {
     if (userFrame != null)
     {
         userFrame.Dispose();
     }
     userFrame = (nuitrack.UserFrame)frame.Clone();
     onUserTrackerUpdate?.Invoke(userFrame);
 }
예제 #2
0
    void HandleOnUserTrackerUpdateEvent(nuitrack.UserFrame frame)
    {
        if (UserFrame != null)
        {
            UserFrame.Dispose();
        }
        UserFrame = (nuitrack.UserFrame)frame.Clone();

        try
        {
            onUserTrackerUpdate?.Invoke(UserFrame);
        }
        catch (Exception ex)
        {
            Debug.LogException(ex);
        }

        Floor = new Plane(UserFrame.FloorNormal.ToVector3().normalized, UserFrame.Floor.ToVector3() * 0.001f);
    }