protected void InitPerFrame() { if (leapHands == null || leapHands.hand == null) { return; } // horizontal hand if (LeapHands.IsHorizontal(leapHands.hand)) { isRotated = false; } }
/// check if the hand is horizontal public static bool IsHorizontal(Hand hand) { return(LeapHands.IsHorizontal(hand, rotateScale)); }