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

SkeletonJoint Class

Modifiers: final
Represents a single joint in a tracked body skeleton, carrying the joint's index, its parent joint index for hierarchy traversal, and the current spatial Pose (position and orientation). Used with body tracking APIs such as allocateBodyTrackingBuffers and updateBodyTrackingBuffers to interpret the pose arrays returned by the runtime.

Signature

data class SkeletonJoint(val jointIndex: Int, val parentJointIndex: Int, val pose: Pose)

Constructors

SkeletonJoint ( jointIndex , parentJointIndex , pose )
Signature
constructor(jointIndex: Int, parentJointIndex: Int, pose: Pose)
Parameters
jointIndex: Int  Zero-based index of this joint in the skeleton array. Corresponds to a JointType enum value for named joint identification.
parentJointIndex: Int  Index of this joint's parent in the skeleton hierarchy. Used to reconstruct the kinematic chain from root to extremities.
pose: Pose  Current spatial pose of the joint, containing world-space position and orientation. Updated each frame by the body tracking system.

Properties

jointIndex : Int
[Get]
Zero-based index of this joint in the skeleton array. Corresponds to a JointType enum value for named joint identification.
Signature
val jointIndex: Int
parentJointIndex : Int
[Get]
Index of this joint's parent in the skeleton hierarchy. Used to reconstruct the kinematic chain from root to extremities.
Signature
val parentJointIndex: Int
pose : Pose
[Get]
Current spatial pose of the joint, containing world-space position and orientation. Updated each frame by the body tracking system.
Signature
val pose: Pose