Class XRBodyTracker
A tracked body in XR.
- Inheritance
-
XRBodyTracker
Remarks
A body tracking system will create an instance of this object and add it to the XRServer. This tracking system will then obtain skeleton data, convert it to the Godot Humanoid skeleton and store this data on the XRBodyTracker object.
Use XRBodyModifier3D to animate a body mesh using body tracking data.
See Also
Properties
body_flags
The type of body tracking data captured.
var body_flags : int = 0
Property Value
Remarks
has_tracking_data
If true
, the body tracking data is valid.
var has_tracking_data : bool = false
Property Value
Remarks
Methods
get_joint_flags(int)
Qualifiers: const
Returns flags about the validity of the tracking data for the given body joint (see JointFlags).
int get_joint_flags(int joint)
Parameters
joint
int
get_joint_transform(int)
Qualifiers: const
Returns the transform for the given body joint.
Transform3D get_joint_transform(int joint)
Parameters
joint
int
set_joint_flags(int, int)
Sets flags about the validity of the tracking data for the given body joint.
void set_joint_flags(int joint, int flags)
Parameters
set_joint_transform(int, Transform3D)
Sets the transform for the given body joint.
void set_joint_transform(int joint, Transform3D transform)
Parameters
joint
inttransform
Transform3D