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

OVRCustomSkeleton Class

Extends OVRSkeleton, ISerializationCallbackReceiver
A child class definition of the class responsible for setting OVRSkeleton body tracking bones transforms to a specified oculus skeleton.
The oculus skeleton is a skeleton that will need to use bones that match body tracking names specified in OVRSkeleton.BoneId for the desired skeleton joint set, and performs no other modifications on top of applying the body tracking data. As such, the skeleton bones should be rigged such that the rest pose bones of the skeleton matches the bone structure and space in OVRSkeleton.BindPoses. A visual reference of body joints can also be found here.

Properties

CustomBones : List< Transform >
[Get]
Provides access to the list of bones that are part of the Oculus skeleton.
These bones have body tracking data applied, and can be accessed to apply or retrieve information about the skeleton such as the position and rotation of a specific bone. By using these transforms, you can modify the skeleton to be affected by application logic.
Signature
List<Transform> CustomBones

Protected Methods

GetBoneTransform ( boneId )
Signature
override Transform GetBoneTransform(BoneId boneId)
Parameters
boneId: BoneId
Returns
override Transform

Inner Enum

RetargetingType Enum

This enum specifies the types of supported skeleton structures to be retargeted to from body tracking.
Any skeleton type that isn't specified here is not compatible with the OVRCustomSkeleton. Instead, please check the body tracking documentation for more information on retargeting to a third party humanoid skeleton.

Enumeration Constants

MemberDescription
OculusSkeleton
The default skeleton structure of the body tracking system. The rest pose of this skeleton should match the rest pose specified by OVRSkeleton.BindPoses.