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

OVRBone Class

Extends IDisposable
OVRBone represents bone data obtained from hand or body
tracking.
You can use it to access the transform that tracks the bone's movements, as well as the bone ID associated with the transform. You can retarget each bone to a character's skeleton so that a person's movements can be represented by a visual representation.
Find examples of how this class is used in OVRSkeleton.

Properties

The identifier associated with the OVRSkeleton bone being tracked.
For instance, the Id can correspond to body tracking spine bones and you may use them to deduce curvature. Query the OVRSkeleton.Bones and OVRSkeleton.BindPoses fields to look up bones by this identifier.
The index of the parent bone, if one exists, for the current bone.
Use this field to index into the list of available bones.
The transform that is created at runtime.
Use this to track the pose of the character's bone.

Member Functions

OVRBone constructor which does not require joint data as arguments, which means its fields will remain invalid unless you set them after instantiation.
OVRBone constructor that requires joint data as arguments, such as the bone ID, parent bone index, and the transform associated with the bone.
Parameters
id
Bone ID.
parentBoneIndex
Parent bone index.
trans
Associated bone transform.
This function destroys the GameObject tracking the skeletal bone.
This prevents the GameObject from persisting after the skeleton instance is no longer relevant.
Did you find this page helpful?