class_arvrpositionaltracker.rst 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the ARVRPositionalTracker.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_ARVRPositionalTracker:
  5. ARVRPositionalTracker
  6. =====================
  7. **Inherits:** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. A tracked object
  12. Member Functions
  13. ----------------
  14. +------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
  15. | :ref:`int<class_int>` | :ref:`get_hand<class_ARVRPositionalTracker_get_hand>` **(** **)** const |
  16. +------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
  17. | :ref:`int<class_int>` | :ref:`get_joy_id<class_ARVRPositionalTracker_get_joy_id>` **(** **)** const |
  18. +------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
  19. | :ref:`String<class_string>` | :ref:`get_name<class_ARVRPositionalTracker_get_name>` **(** **)** const |
  20. +------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
  21. | :ref:`Basis<class_basis>` | :ref:`get_orientation<class_ARVRPositionalTracker_get_orientation>` **(** **)** const |
  22. +------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
  23. | :ref:`Vector3<class_vector3>` | :ref:`get_position<class_ARVRPositionalTracker_get_position>` **(** **)** const |
  24. +------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
  25. | :ref:`bool<class_bool>` | :ref:`get_tracks_orientation<class_ARVRPositionalTracker_get_tracks_orientation>` **(** **)** const |
  26. +------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
  27. | :ref:`bool<class_bool>` | :ref:`get_tracks_position<class_ARVRPositionalTracker_get_tracks_position>` **(** **)** const |
  28. +------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
  29. | :ref:`Transform<class_transform>` | :ref:`get_transform<class_ARVRPositionalTracker_get_transform>` **(** :ref:`bool<class_bool>` adjust_by_reference_frame **)** const |
  30. +------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
  31. | :ref:`int<class_int>` | :ref:`get_type<class_ARVRPositionalTracker_get_type>` **(** **)** const |
  32. +------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
  33. Member Variables
  34. ----------------
  35. .. _class_ARVRPositionalTracker_rumble:
  36. - :ref:`float<class_float>` **rumble** - The degree to which the tracker rumbles. Ranges from ``0.0`` to ``1.0`` with precision ``.01``.
  37. Enums
  38. -----
  39. .. _enum_ARVRPositionalTracker_TrackerHand:
  40. enum **TrackerHand**
  41. - **TRACKER_HAND_UNKNOWN** = **0** --- The hand this tracker is held in is unknown or not applicable.
  42. - **TRACKER_LEFT_HAND** = **1** --- This tracker is the left hand controller.
  43. - **TRACKER_RIGHT_HAND** = **2** --- This tracker is the right hand controller.
  44. Description
  45. -----------
  46. 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.
  47. 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
  48. 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.
  49. Member Function Description
  50. ---------------------------
  51. .. _class_ARVRPositionalTracker_get_hand:
  52. - :ref:`int<class_int>` **get_hand** **(** **)** const
  53. Returns the hand holding this tracker, if known. See TRACKER\_\* constants.
  54. .. _class_ARVRPositionalTracker_get_joy_id:
  55. - :ref:`int<class_int>` **get_joy_id** **(** **)** const
  56. If this is a controller that is being tracked the controller will also be represented by a joystick entry with this id.
  57. .. _class_ARVRPositionalTracker_get_name:
  58. - :ref:`String<class_string>` **get_name** **(** **)** const
  59. Returns the controller or anchor point's name if available.
  60. .. _class_ARVRPositionalTracker_get_orientation:
  61. - :ref:`Basis<class_basis>` **get_orientation** **(** **)** const
  62. Returns the controller's orientation matrix.
  63. .. _class_ARVRPositionalTracker_get_position:
  64. - :ref:`Vector3<class_vector3>` **get_position** **(** **)** const
  65. Returns the world-space controller position.
  66. .. _class_ARVRPositionalTracker_get_tracks_orientation:
  67. - :ref:`bool<class_bool>` **get_tracks_orientation** **(** **)** const
  68. Returns ``true`` if this device tracks orientation.
  69. .. _class_ARVRPositionalTracker_get_tracks_position:
  70. - :ref:`bool<class_bool>` **get_tracks_position** **(** **)** const
  71. Returns ``true`` if this device tracks position.
  72. .. _class_ARVRPositionalTracker_get_transform:
  73. - :ref:`Transform<class_transform>` **get_transform** **(** :ref:`bool<class_bool>` adjust_by_reference_frame **)** const
  74. Returns the transform combining this device's orientation and position.
  75. .. _class_ARVRPositionalTracker_get_type:
  76. - :ref:`int<class_int>` **get_type** **(** **)** const
  77. Returns the tracker's type.