Game.KinectPlayer.CheckRightHandUp C# (CSharp) Method

CheckRightHandUp() private method

private CheckRightHandUp ( Microsoft.Kinect.Skeleton skeleton ) : void
skeleton Microsoft.Kinect.Skeleton
return void
        private void CheckRightHandUp(Skeleton skeleton)
        {
            if (isMotionCheckEnabled)
            {
                if (skeleton.Joints[JointType.HandRight].Position.Y > spaceRequiredToSideJump)
                {
                    if (skeleton.Joints[JointType.FootRight].Position.Y > skeleton.Joints[JointType.FootLeft].Position.Y)
                    {
                        double footDistance = Math.Sqrt((skeleton.Joints[JointType.FootLeft].Position.Y - skeleton.Joints[JointType.FootRight].Position.Y)
                            * (skeleton.Joints[JointType.FootLeft].Position.Y - skeleton.Joints[JointType.FootRight].Position.Y));

                        if (footDistance > GameConstants.FootToFootDistance)
                        {
                            stateString = "->";
                            isMotionCheckEnabled = false;
                            jumpDirection = 1;
                            lastStance = currentStance;
                            currentStance = GameConstants.PlayerStance.SideJumpReady;
                        }
                    }
                }
            }
        }