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

OVRBoneCapsule Class

The bone capsule class tracks data related to capsule colliders that may or may not be created with skeleton bones.
You may use this to control physics interactions with the skeleton in case the user requires collision-based interactions in a game or experience.

Properties

The index of the bone that is associated with the current capsule.
When used with hand tracking, use to understand what part of the hand corresponds with this instance's capsule.
The rigidbody of the capsule, which you can use to make the capsule kinematic or not.
The capsule collider associated with the instance.
Use this to enable, disable or influence the collisions of the bone's capsule.

Constructors & Destructors

Standard constructor which leaves all fields uninitialized.
Constructor that completely initializes the bone capsule instance.
Parameters
boneIndex
Bone index.
capsuleRigidBody
Bone capsule's rigid body.
capsuleCollider
Bone capsule collider.
Cleans up physics-based objects associated with bone.
The capsule rigid body's GameObject is destroyed.
Did you find this page helpful?