in body-tracking-samples/sample_unity_bodytracking/Assets/Scripts/PuppetAvatar.cs [16:44]
private static HumanBodyBones MapKinectJoint(JointId joint)
{
// https://docs.microsoft.com/en-us/azure/Kinect-dk/body-joints
switch (joint)
{
case JointId.Pelvis: return HumanBodyBones.Hips;
case JointId.SpineNavel: return HumanBodyBones.Spine;
case JointId.SpineChest: return HumanBodyBones.Chest;
case JointId.Neck: return HumanBodyBones.Neck;
case JointId.Head: return HumanBodyBones.Head;
case JointId.HipLeft: return HumanBodyBones.LeftUpperLeg;
case JointId.KneeLeft: return HumanBodyBones.LeftLowerLeg;
case JointId.AnkleLeft: return HumanBodyBones.LeftFoot;
case JointId.FootLeft: return HumanBodyBones.LeftToes;
case JointId.HipRight: return HumanBodyBones.RightUpperLeg;
case JointId.KneeRight: return HumanBodyBones.RightLowerLeg;
case JointId.AnkleRight: return HumanBodyBones.RightFoot;
case JointId.FootRight: return HumanBodyBones.RightToes;
case JointId.ClavicleLeft: return HumanBodyBones.LeftShoulder;
case JointId.ShoulderLeft: return HumanBodyBones.LeftUpperArm;
case JointId.ElbowLeft: return HumanBodyBones.LeftLowerArm;
case JointId.WristLeft: return HumanBodyBones.LeftHand;
case JointId.ClavicleRight: return HumanBodyBones.RightShoulder;
case JointId.ShoulderRight: return HumanBodyBones.RightUpperArm;
case JointId.ElbowRight: return HumanBodyBones.RightLowerArm;
case JointId.WristRight: return HumanBodyBones.RightHand;
default: return HumanBodyBones.LastBone;
}
}