class_openxrhand.rst 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/4.2/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/4.2/modules/openxr/doc_classes/OpenXRHand.xml.
  6. .. _class_OpenXRHand:
  7. OpenXRHand
  8. ==========
  9. **Inherits:** :ref:`Node3D<class_Node3D>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. Node supporting finger tracking in OpenXR.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. This node enables OpenXR's hand tracking functionality. The node should be a child node of an :ref:`XROrigin3D<class_XROrigin3D>` node, tracking will update its position to where the player's actual hand is positioned. This node also updates the skeleton of a properly skinned hand model. The hand mesh should be a child node of this node.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +-------------------------------------------------+---------------------------------------------------------------+------------------+
  21. | :ref:`Hands<enum_OpenXRHand_Hands>` | :ref:`hand<class_OpenXRHand_property_hand>` | ``0`` |
  22. +-------------------------------------------------+---------------------------------------------------------------+------------------+
  23. | :ref:`NodePath<class_NodePath>` | :ref:`hand_skeleton<class_OpenXRHand_property_hand_skeleton>` | ``NodePath("")`` |
  24. +-------------------------------------------------+---------------------------------------------------------------+------------------+
  25. | :ref:`MotionRange<enum_OpenXRHand_MotionRange>` | :ref:`motion_range<class_OpenXRHand_property_motion_range>` | ``0`` |
  26. +-------------------------------------------------+---------------------------------------------------------------+------------------+
  27. .. rst-class:: classref-section-separator
  28. ----
  29. .. rst-class:: classref-descriptions-group
  30. Enumerations
  31. ------------
  32. .. _enum_OpenXRHand_Hands:
  33. .. rst-class:: classref-enumeration
  34. enum **Hands**:
  35. .. _class_OpenXRHand_constant_HAND_LEFT:
  36. .. rst-class:: classref-enumeration-constant
  37. :ref:`Hands<enum_OpenXRHand_Hands>` **HAND_LEFT** = ``0``
  38. Tracking the player's left hand.
  39. .. _class_OpenXRHand_constant_HAND_RIGHT:
  40. .. rst-class:: classref-enumeration-constant
  41. :ref:`Hands<enum_OpenXRHand_Hands>` **HAND_RIGHT** = ``1``
  42. Tracking the player's right hand.
  43. .. _class_OpenXRHand_constant_HAND_MAX:
  44. .. rst-class:: classref-enumeration-constant
  45. :ref:`Hands<enum_OpenXRHand_Hands>` **HAND_MAX** = ``2``
  46. Maximum supported hands.
  47. .. rst-class:: classref-item-separator
  48. ----
  49. .. _enum_OpenXRHand_MotionRange:
  50. .. rst-class:: classref-enumeration
  51. enum **MotionRange**:
  52. .. _class_OpenXRHand_constant_MOTION_RANGE_UNOBSTRUCTED:
  53. .. rst-class:: classref-enumeration-constant
  54. :ref:`MotionRange<enum_OpenXRHand_MotionRange>` **MOTION_RANGE_UNOBSTRUCTED** = ``0``
  55. When player grips, hand skeleton will form a full fist.
  56. .. _class_OpenXRHand_constant_MOTION_RANGE_CONFORM_TO_CONTROLLER:
  57. .. rst-class:: classref-enumeration-constant
  58. :ref:`MotionRange<enum_OpenXRHand_MotionRange>` **MOTION_RANGE_CONFORM_TO_CONTROLLER** = ``1``
  59. When player grips, hand skeleton conforms to the controller the player is holding.
  60. .. _class_OpenXRHand_constant_MOTION_RANGE_MAX:
  61. .. rst-class:: classref-enumeration-constant
  62. :ref:`MotionRange<enum_OpenXRHand_MotionRange>` **MOTION_RANGE_MAX** = ``2``
  63. Maximum supported motion ranges.
  64. .. rst-class:: classref-section-separator
  65. ----
  66. .. rst-class:: classref-descriptions-group
  67. Property Descriptions
  68. ---------------------
  69. .. _class_OpenXRHand_property_hand:
  70. .. rst-class:: classref-property
  71. :ref:`Hands<enum_OpenXRHand_Hands>` **hand** = ``0``
  72. .. rst-class:: classref-property-setget
  73. - void **set_hand** **(** :ref:`Hands<enum_OpenXRHand_Hands>` value **)**
  74. - :ref:`Hands<enum_OpenXRHand_Hands>` **get_hand** **(** **)**
  75. Specifies whether this node tracks the left or right hand of the player.
  76. .. rst-class:: classref-item-separator
  77. ----
  78. .. _class_OpenXRHand_property_hand_skeleton:
  79. .. rst-class:: classref-property
  80. :ref:`NodePath<class_NodePath>` **hand_skeleton** = ``NodePath("")``
  81. .. rst-class:: classref-property-setget
  82. - void **set_hand_skeleton** **(** :ref:`NodePath<class_NodePath>` value **)**
  83. - :ref:`NodePath<class_NodePath>` **get_hand_skeleton** **(** **)**
  84. Set a :ref:`Skeleton3D<class_Skeleton3D>` node for which the pose positions will be updated.
  85. .. rst-class:: classref-item-separator
  86. ----
  87. .. _class_OpenXRHand_property_motion_range:
  88. .. rst-class:: classref-property
  89. :ref:`MotionRange<enum_OpenXRHand_MotionRange>` **motion_range** = ``0``
  90. .. rst-class:: classref-property-setget
  91. - void **set_motion_range** **(** :ref:`MotionRange<enum_OpenXRHand_MotionRange>` value **)**
  92. - :ref:`MotionRange<enum_OpenXRHand_MotionRange>` **get_motion_range** **(** **)**
  93. Set the motion range (if supported) limiting the hand motion.
  94. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  95. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  96. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  97. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  98. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  99. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  100. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`