Example #1
0
 public void UpdateJointPosition(JointsCollection joints, JointID j)
 {
     var seg = new PlayerUtils.Segment(joints[j].Position.X * playerScale + playerCenter.X,
                           playerCenter.Y - joints[j].Position.Y * playerScale);
     seg.radius = playerBounds.Height * ((j == JointID.Head) ? HEAD_SIZE : HAND_SIZE) / 2;
     UpdateSegmentPosition(j, j, seg);
 }
Example #2
0
 public void UpdateBonePosition(Microsoft.Research.Kinect.Nui.JointsCollection joints, JointID j1, JointID j2)
 {
     var seg = new PlayerUtils.Segment(joints[j1].Position.X * playerScale + playerCenter.X,
                           playerCenter.Y - joints[j1].Position.Y * playerScale,
                           joints[j2].Position.X * playerScale + playerCenter.X,
                           playerCenter.Y - joints[j2].Position.Y * playerScale);
     seg.radius = Math.Max(3.0, playerBounds.Height * BONE_SIZE) / 2;
     UpdateSegmentPosition(j1, j2, seg);
 }