public static void getCurrentSkeletonJointOrientation(UInt32 userID, FubiUtils.SkeletonJoint joint, float[] mat, out float confidence, out double timeStamp) { IntPtr info = FubiInternal.getCurrentTrackingData(userID); if (info.ToInt32() != 0) { FubiInternal.getSkeletonJointOrientation(info, joint, mat, out confidence, out timeStamp); } else { mat = new float[] { 1, 0, 0, 0, 1, 0, 0, 0, 1 }; confidence = 0; timeStamp = 0; } }
public static void getCurrentSkeletonJointPosition(UInt32 userID, FubiUtils.SkeletonJoint joint, out float x, out float y, out float z, out float confidence, out double timeStamp, bool useLocalPositions = false) { IntPtr info = FubiInternal.getCurrentTrackingData(userID); FubiInternal.getSkeletonJointPosition(info, joint, out x, out y, out z, out confidence, out timeStamp, useLocalPositions); }