示例#1
0
    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));
    }
示例#2
0
    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);
    }
示例#3
0
 public bool IsJointTracked(uint UserId, int joint)
 {
     KinectWrapper.GetJointTransformation(UserId, joint, ref jointTransform);
     return(jointTransform.ori.confidence > 0.5);
 }