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...
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.
◆ GetAbsoluteJointRotation()
Quaternion Spelunx.Orbbec.BodyTracker.GetAbsoluteJointRotation |
( |
JointId |
jointId | ) |
|
|
inline |
Get the rotation of a joint, relative to the root.
- Parameters
-
jointId | The 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 |
◆ GetRelativeJointRotation()
Quaternion Spelunx.Orbbec.BodyTracker.GetRelativeJointRotation |
( |
JointId |
jointId | ) |
|
|
inline |
Get the rotation of a joint, relative to its parent.
- Parameters
-
jointId | The 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 |
◆ ShowSkeleton()
void Spelunx.Orbbec.BodyTracker.ShowSkeleton |
( |
bool |
show | ) |
|
|
inline |
Show or hide the skeleton in the game scene.
- Parameters
-
show | Show 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
-
frameData | The frame data to update the skeleton. |
The sensor orientation, used to rotate the skeleton is upright.
- Parameters
-
Definition at line 280 of file BodyTracker.cs.
The documentation for this class was generated from the following file:
- CavernSDK/Packages/com.spelunx.cavern.orbbec.sdk/Runtime/Scripts/BodyTracker.cs