Attention: Here be dragons
This is the
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
A tracked object.
An instance of this object represents a device that is tracked, such as a controller or anchor point. HMDs aren't represented here as they are handled internally.
The XRController3D and XRAnchor3D both consume objects of this type and should be used in your project. The positional trackers are just under-the-hood objects that make this all work. These are mostly exposed so that GDExtension-based interfaces can interact with them.
Emitted when a button on this tracker is pressed. Note that many XR runtimes allow other inputs to be mapped to buttons.
Emitted when a button on this tracker is released.
Emitted when a trigger or similar input on this tracker changes value.
Emitted when a thumbstick or thumbpad on this tracker moves.
pose_changed ( XRPose pose )
Emitted when the state of a pose tracked by this tracker changes.
pose_lost_tracking ( XRPose pose )
Emitted when a pose tracked by this tracker stops getting updated tracking data.
profile_changed ( String role )
Emitted when the profile of our tracker changes.
TrackerHand TRACKER_HAND_UNKNOWN =
The hand this tracker is held in is unknown or not applicable.
TrackerHand TRACKER_HAND_LEFT =
This tracker is the left hand controller.
TrackerHand TRACKER_HAND_RIGHT =
This tracker is the right hand controller.
String description =
The description of this tracker.
TrackerHand hand =
Defines which hand this tracker relates to.