API reference
API reference
Select your platform
No SDKs available
No versions available

BoneData Class

Data associated per bone.
This includes the original joint transform, as well as start and end transforms that are used to create a joint direction and orientation. The retargeting system uses the orientations to align the target to the source (body tracking) skeleton.
An example can be see in OVRUnityHumanoidSkeletonRetargeter, which retargets body tracking to Unity humanoids.

Fields

The original transform associated with joint data.
Use this to track the joint's movements.
From position for joint pair, created during data generation.
You may use this field for visual debugging.
To or end position for joint pair, created during data generation.
You may use this field for visual debugging.
Start of joint pair, usually the original joint transform, used to create the joint orientation value.
The joint that follows this one is JointPairStart.
End of joint pair, which is usually the joint following the original one.
Together with JointPairStart, this is used to create the joint's orientation.
The orientation or rotation corresponding to joint pair.
Multiply this by the Vector3.forward vector to derive the forward direction.
The offset quaternion necessary for retargeting by classes such as OVRUnityHumanoidSkeletonRetargeter.
Use this to affect a target character's joint rotation by the source's rotation during retargeting.
Parent transform of joint.
Use this for edge cases where the original bone cannot have a joint pair created because it has no children, and its orientation cannot be derived. The parent transform is used to derive the orientation as a backup.
Some joints made have bad orientations due to faulty joint pairs.
This can happen if the joint pair start end position have the same value.

Member Functions

Default, no-argument constructor, that leaves fields such as the original joint, start transform, end transform, and orientation uninitialized.
Copy constructor that copies fields such as the original joint, start transform, end transform, orientation from another joint onto this one.
Parameters
otherBoneData
Did you find this page helpful?
Thumbs up icon
Thumbs down icon