int GetHueShiftFromHand(Hand2d hand2D) { if (hand2D.Side == HandSide.Left) { return(skeletalData2d.TrackableEffectHueShiftLeft); } else { return(skeletalData2d.TrackableEffectHueShiftRight); } }
static bool IsValidThrowDirection(Vector velocity) { VectorCompassDirection vectorDirection = Hand2d.GetVectorDirection(velocity); switch (vectorDirection) { case VectorCompassDirection.Up: case VectorCompassDirection.Left: case VectorCompassDirection.Right: case VectorCompassDirection.Forward: return(true); } return(false); }
public static void ClearHistory(Hand2d hand) { ClearQueue(hand.Side); }
public static PositionVelocityTime GetThrowVector(Hand2d hand) { return(GetThrowVector(GetQueue(hand.Side))); }