API reference

BodySkeletonMapping Class

Maps a skeleton with joint id TSourceJointId to BodyJointId, and exposes parent/child relationships within the skeleton.
Others
TSourceJointId
The enum joint type of the source skeleton

Properties

IEnumerableHashSet< BodyJointId > Joints[Get]
The set of BodyJointIds supported by this skeleton.

Member Functions

bool TryGetParentJointId
( BodyJointId jointId,
out BodyJointId parent )
Get the parent joint for a given body joint.
Parameters
jointId
The joint to fetch the parent for
parent
The parent joint
Returns
True if parent could be retrieved
bool TryGetSourceJointId
( BodyJointId jointId,
out TSourceJointId sourceJointId )
bool TryGetBodyJointId
( TSourceJointId jointId,
out BodyJointId bodyJointId )

Protected Functions

TSourceJointId GetSourceJointFromBodyJoint
( BodyJointId jointId )
BodyJointId GetBodyJointFromSourceJoint
( TSourceJointId sourceJointId )
BodySkeletonMapping
( TSourceJointId root,
IReadOnlyDictionary< BodyJointId, JointInfo > jointMapping )