BodyTrackingProvider

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

Starting the body tracking provider on an uncalibrated device will fail. You can call start with BodyTrackingStartInfo to launch the PICO Motion Tracker app to calibrate body tracking.

Body tracking data contains 24 body joints, each joint has 6DoF pose data. You can get the full pose data by BodyTrackingData.bodyPose and the pose of each joint by BodyPose.bodyJoints.

bodyTrackingData.bodyPose.bodyJoints.forEach {
// Get the rotation and position of each joint
it.rotation
it.position
// Identify joint by index
it.index
}

You can register a TrackingStateListener using addTrackingStateListener to receive updates on the body tracking state.

See also

Types

Link copied to clipboard
fun interface TrackingStateListener

Listener interface for monitoring the body tracking state.

Functions

Link copied to clipboard
Link copied to clipboard

Removes the TrackingStateListener to stop receiving body tracking state.

Link copied to clipboard

Starts providing body tracking data using the specified BodyTrackingStartInfo.