/* string jointString(KinectInterop.JointType j, Vector3 position, Quaternion rotation) * { * print(string.Format("{0} : [ Position . {1} ] [ Rotation . {2} ]", j.ToString(), position.ToString(), rotation.ToString())); * return string.Format("{0} : [ Position . {1} ] [ Rotation . {2} ]", j.ToString(), position.ToString(), rotation.ToString()); * } */ // Array allJoints = Enum.GetValues(typeof(KinectInterop.JointType)); public EnableSerializableValue skeletonData() { // EnableBody ebody = new EnableBody(); // return ebody; //print("TrackAvatar:skeletonData"); EnableBody ebody = avatarSkeleton.GetSkeletonData(true); //print("TrackAvatar:GetSkeletonData returned: " + ebody); return(ebody); }
/// <summary> /// </summary> void CopySkeletonData() { //print("getSkelData"); EnableBody ebody = avatarSkeleton.GetSkeletonData(true); Dictionary <string, EnableJoint> joints = ebody.Joints; //estimatedRootOffset = newEstimatedRootOffset; float duration = 0.0f; float speed = 1.0f; //SessionReplay.timeScale; if (Ghost) { // print("\n--GHOST1--\n"); Ghost.SetFromBody(ebody, duration, speed, usePositionData, mirror); } }