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.
As controllers are turned on and the XRInterface detects them, instances of this object are automatically added to this list of active tracking objects accessible through the XRServer.
The XRNode3D 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.
The profile associated with this tracker, interface dependent but will indicate the type of controller being tracked.
Returns an input for this tracker. It can return a boolean, float or Vector2 value depending on whether the input is a button, trigger or thumbstick/thumbpad.
Returns the current XRPose state object for the bound name pose.
Marks this pose as invalid, we don't clear the last reported state but it allows users to decide if trackers need to be hidden if we lose tracking or just remain at their last known position.
Changes the value for the given input. This method is called by an XRInterface implementation and should not be used directly.
Sets the transform, linear velocity, angular velocity and tracking confidence for the given pose. This method is called by an XRInterface implementation and should not be used directly.
Emitted when a button on this tracker is pressed. Note that many XR runtimes allow other inputs to be mapped to buttons.
TRACKER_HAND_UNKNOWN = 0The hand this tracker is held in is unknown or not applicable.
TRACKER_HAND_LEFT = 1This tracker is the left hand controller.
TRACKER_HAND_RIGHT = 2This tracker is the right hand controller.
TRACKER_HAND_MAX = 3Represents the size of the TrackerHand enum.