Пример #1
0
        protected void InitPerFrame()
        {
            if (leapHands == null || leapHands.hand == null)
            {
                return;
            }

            // horizontal hand
            if (LeapHands.IsHorizontal(leapHands.hand))
            {
                isRotated = false;
            }
        }
Пример #2
0
 /// check if the hand is horizontal
 public static bool IsHorizontal(Hand hand)
 {
     return(LeapHands.IsHorizontal(hand, rotateScale));
 }