Spelunx Cavern SDK
 
Loading...
Searching...
No Matches
Spelunx.Orbbec.BodyTracker Class Reference

BodyTracker represents the BodyData from the ORBBEC sensor as a skeleton. Important: BodyTracker prefab's child hierachy must be in the same order as JointId. More...

Inheritance diagram for Spelunx.Orbbec.BodyTracker:
Inheritance graph
Collaboration diagram for Spelunx.Orbbec.BodyTracker:
Collaboration graph

Public Member Functions

void ShowSkeleton (bool show)
 Show or hide the skeleton in the game scene.
 
Vector3 GetJointPosition (JointId jointId)
 
Quaternion GetAbsoluteJointRotation (JointId jointId)
 Get the rotation of a joint, relative to the root.
 
Quaternion GetRelativeJointRotation (JointId jointId)
 Get the rotation of a joint, relative to its parent.
 
void UpdateSkeleton (FrameData frameData, SensorOrientation orientation)
 Update the skeleton based on frame data.
 
Transform GetRootJoint ()
 

Detailed Description

BodyTracker represents the BodyData from the ORBBEC sensor as a skeleton. Important: BodyTracker prefab's child hierachy must be in the same order as JointId.

Definition at line 10 of file BodyTracker.cs.

Member Function Documentation

◆ GetAbsoluteJointRotation()

Quaternion Spelunx.Orbbec.BodyTracker.GetAbsoluteJointRotation ( JointId  jointId)
inline

Get the rotation of a joint, relative to the root.

Parameters
jointIdThe ID of the joint which to get the rotation.
Returns
The rotation of the joint of ID jointId, relative to the root.

Definition at line 247 of file BodyTracker.cs.

◆ GetJointPosition()

Vector3 Spelunx.Orbbec.BodyTracker.GetJointPosition ( JointId  jointId)
inline

Definition at line 236 of file BodyTracker.cs.

◆ GetRelativeJointRotation()

Quaternion Spelunx.Orbbec.BodyTracker.GetRelativeJointRotation ( JointId  jointId)
inline

Get the rotation of a joint, relative to its parent.

Parameters
jointIdThe ID of the joint which to get the rotation.
Returns
The rotation of the joint of ID jointId, relative to its parent.

Definition at line 258 of file BodyTracker.cs.

◆ GetRootJoint()

Transform Spelunx.Orbbec.BodyTracker.GetRootJoint ( )
inline

Definition at line 289 of file BodyTracker.cs.

◆ ShowSkeleton()

void Spelunx.Orbbec.BodyTracker.ShowSkeleton ( bool  show)
inline

Show or hide the skeleton in the game scene.

Parameters
showShow the skeleton if true, else hide the skeleton.

Definition at line 229 of file BodyTracker.cs.

◆ UpdateSkeleton()

void Spelunx.Orbbec.BodyTracker.UpdateSkeleton ( FrameData  frameData,
SensorOrientation  orientation 
)
inline

Update the skeleton based on frame data.

Parameters
frameDataThe frame data to update the skeleton.

The sensor orientation, used to rotate the skeleton is upright.

Parameters
orientation

Definition at line 280 of file BodyTracker.cs.


The documentation for this class was generated from the following file: