2024-04-13 17:26:46 -04:00
<?xml version="1.0" encoding="UTF-8" ?>
<class name= "XRTracker" inherits= "RefCounted" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
<brief_description >
A tracked object.
</brief_description>
<description >
This object is the base of all XR trackers.
</description>
<tutorials >
<link title= "XR documentation index" > $DOCS_URL/tutorials/xr/index.html</link>
</tutorials>
<members >
<member name= "description" type= "String" setter= "set_tracker_desc" getter= "get_tracker_desc" default= """" >
The description of this tracker.
</member>
<member name= "name" type= "StringName" setter= "set_tracker_name" getter= "get_tracker_name" default= "&"Unknown"" >
The unique name of this tracker. The trackers that are available differ between various XR runtimes and can often be configured by the user. Godot maintains a number of reserved names that it expects the [XRInterface] to implement if applicable:
2025-06-23 16:34:51 +02:00
- [code]"head"[/code] identifies the [XRPositionalTracker] of the player's head
- [code]"left_hand"[/code] identifies the [XRControllerTracker] in the player's left hand
- [code]"right_hand"[/code] identifies the [XRControllerTracker] in the player's right hand
- [code]"/user/hand_tracker/left"[/code] identifies the [XRHandTracker] for the player's left hand
- [code]"/user/hand_tracker/right"[/code] identifies the [XRHandTracker] for the player's right hand
- [code]"/user/body_tracker"[/code] identifies the [XRBodyTracker] for the player's body
- [code]"/user/face_tracker"[/code] identifies the [XRFaceTracker] for the player's face
2024-04-13 17:26:46 -04:00
</member>
<member name= "type" type= "int" setter= "set_tracker_type" getter= "get_tracker_type" enum= "XRServer.TrackerType" default= "128" >
The type of tracker.
</member>
</members>
</class>