HandTrackingProvider

Provides hand tracking data. For usage details, refer to DataProvider.

Hand tracking data includes the poses of both left and right hands. Each hand contains 26 joints, and each joint has 6DoF pose data. You can get the pose of each hand via HandTrackingData.left and HandTrackingData.right, and get the pose of each joint via HandPose.handJoints.

// Get the pose of the left hand
handTrackingData.left?.handJoints.forEach {
// Get the rotation and position of each joint
it.rotation
it.position
// Identify a joint by index
it.index
}

See also

Constructors

Link copied to clipboard
constructor()