.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the ARVRPositionalTracker.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_ARVRPositionalTracker: ARVRPositionalTracker ===================== **Inherits:** :ref:`Object` **Category:** Core Brief Description ----------------- A tracked object Member Functions ---------------- +------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_hand` **(** **)** const | +------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_joy_id` **(** **)** const | +------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_name` **(** **)** const | +------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Basis` | :ref:`get_orientation` **(** **)** const | +------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector3` | :ref:`get_position` **(** **)** const | +------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`get_tracks_orientation` **(** **)** const | +------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`get_tracks_position` **(** **)** const | +------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Transform` | :ref:`get_transform` **(** :ref:`bool` adjust_by_reference_frame **)** const | +------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_type` **(** **)** const | +------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ Numeric Constants ----------------- - **TRACKER_HAND_UNKNOWN** = **0** - **TRACKER_LEFT_HAND** = **1** - **TRACKER_RIGHT_HAND** = **2** Description ----------- 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 fully handled internally. As controllers are turned on and the AR/VR interface detects them instances of this object are automatically added to this list of active tracking objects accessible through the ARVRServer The ARVRController and ARVRAnchor both consume objects of this type and should be the objects you use in game. The positional trackers are just the under the hood objects that make this all work and are mostly exposed so GDNative based interfaces can interact with them. Member Function Description --------------------------- .. _class_ARVRPositionalTracker_get_hand: - :ref:`int` **get_hand** **(** **)** const .. _class_ARVRPositionalTracker_get_joy_id: - :ref:`int` **get_joy_id** **(** **)** const If this is a controller that is being tracked the controller will also be represented by a joystick entry with this id. .. _class_ARVRPositionalTracker_get_name: - :ref:`String` **get_name** **(** **)** const If available this returns the name of the controller or anchor point. .. _class_ARVRPositionalTracker_get_orientation: - :ref:`Basis` **get_orientation** **(** **)** const Returns the orientation matrix of the controller. .. _class_ARVRPositionalTracker_get_position: - :ref:`Vector3` **get_position** **(** **)** const Returns the position of the controller adjusted by world scale. .. _class_ARVRPositionalTracker_get_tracks_orientation: - :ref:`bool` **get_tracks_orientation** **(** **)** const Returns true if the orientation of this device is being tracked. .. _class_ARVRPositionalTracker_get_tracks_position: - :ref:`bool` **get_tracks_position** **(** **)** const Returns true if the position of this device is being tracked. .. _class_ARVRPositionalTracker_get_transform: - :ref:`Transform` **get_transform** **(** :ref:`bool` adjust_by_reference_frame **)** const Returns the transform combining the orientation and position of this device. .. _class_ARVRPositionalTracker_get_type: - :ref:`int` **get_type** **(** **)** const Type of tracker.