OVRBone
()
| OVRBone constructor which does not require joint data as arguments, which means its fields will remain invalid unless you set them after instantiation.
Signature
OVRBone() |
OVRBone
(
id
, parentBoneIndex
, trans
)
| OVRBone constructor that requires joint data as arguments, such as the bone ID, parent bone index, and the transform associated with the bone.
Signature
OVRBone(OVRSkeleton.BoneId id, short parentBoneIndex, Transform trans) Parameters parentBoneIndex: short
Parent bone index.
|
Id
: OVRSkeleton.BoneId
[Get][Set] |
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.
Signature
OVRSkeleton.BoneId Id |
ParentBoneIndex
: short
[Get][Set] |
The index of the parent bone, if one exists, for the current bone.
Use this field to index into the list of available bones.
Signature
short ParentBoneIndex |
Transform
: Transform
[Get][Set] |
The transform that is created at runtime.
Use this to track the pose of the character's bone.
Signature
Transform Transform |
Dispose
()
|
This function destroys the GameObject tracking the skeletal bone.
This prevents the GameObject from persisting after the skeleton instance is no longer relevant.
Signature
void Dispose() Returns void |