public Vector3 GetJointPosition(uint UserId, int joint) { KinectWrapper.GetJointTransformation(UserId, joint, ref jointTransform); KinectWrapper.SkeletonJointPosition pos = jointTransform.pos; return(new Vector3(pos.x * 0.001f, pos.y * 0.001f, pos.z * 0.001f)); }
public Quaternion GetJointOrientation(uint UserId, int joint, bool flip) { KinectWrapper.GetJointTransformation(UserId, joint, ref jointTransform); KinectWrapper.SkeletonJointOrientation ori = jointTransform.ori; Quaternion quat = ConvertMatrixToQuat(ori, joint, flip); return(quat); }
public bool IsJointTracked(uint UserId, int joint) { KinectWrapper.GetJointTransformation(UserId, joint, ref jointTransform); return(jointTransform.ori.confidence > 0.5); }