class_xrhandmodifier3d.rst 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/XRHandModifier3D.xml.
  6. .. _class_XRHandModifier3D:
  7. XRHandModifier3D
  8. ================
  9. **Inherits:** :ref:`SkeletonModifier3D<class_SkeletonModifier3D>` **<** :ref:`Node3D<class_Node3D>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. A node for driving hand meshes from :ref:`XRHandTracker<class_XRHandTracker>` data.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. This node uses hand tracking data from an :ref:`XRHandTracker<class_XRHandTracker>` to pose the skeleton of a hand mesh.
  15. Positioning of hands is performed by creating an :ref:`XRNode3D<class_XRNode3D>` ancestor of the hand mesh driven by the same :ref:`XRHandTracker<class_XRHandTracker>`.
  16. The hand tracking position-data is scaled by :ref:`Skeleton3D.motion_scale<class_Skeleton3D_property_motion_scale>` when applied to the skeleton, which can be used to adjust the tracked hand to match the scale of the hand model.
  17. .. rst-class:: classref-introduction-group
  18. Tutorials
  19. ---------
  20. - :doc:`XR documentation index <../tutorials/xr/index>`
  21. .. rst-class:: classref-reftable-group
  22. Properties
  23. ----------
  24. .. table::
  25. :widths: auto
  26. +-----------------------------------------------------+-------------------------------------------------------------------+--------------------------------+
  27. | :ref:`BoneUpdate<enum_XRHandModifier3D_BoneUpdate>` | :ref:`bone_update<class_XRHandModifier3D_property_bone_update>` | ``0`` |
  28. +-----------------------------------------------------+-------------------------------------------------------------------+--------------------------------+
  29. | :ref:`StringName<class_StringName>` | :ref:`hand_tracker<class_XRHandModifier3D_property_hand_tracker>` | ``&"/user/hand_tracker/left"`` |
  30. +-----------------------------------------------------+-------------------------------------------------------------------+--------------------------------+
  31. .. rst-class:: classref-section-separator
  32. ----
  33. .. rst-class:: classref-descriptions-group
  34. Enumerations
  35. ------------
  36. .. _enum_XRHandModifier3D_BoneUpdate:
  37. .. rst-class:: classref-enumeration
  38. enum **BoneUpdate**: :ref:`🔗<enum_XRHandModifier3D_BoneUpdate>`
  39. .. _class_XRHandModifier3D_constant_BONE_UPDATE_FULL:
  40. .. rst-class:: classref-enumeration-constant
  41. :ref:`BoneUpdate<enum_XRHandModifier3D_BoneUpdate>` **BONE_UPDATE_FULL** = ``0``
  42. The skeleton's bones are fully updated (both position and rotation) to match the tracked bones.
  43. .. _class_XRHandModifier3D_constant_BONE_UPDATE_ROTATION_ONLY:
  44. .. rst-class:: classref-enumeration-constant
  45. :ref:`BoneUpdate<enum_XRHandModifier3D_BoneUpdate>` **BONE_UPDATE_ROTATION_ONLY** = ``1``
  46. The skeleton's bones are only rotated to align with the tracked bones, preserving bone length.
  47. .. _class_XRHandModifier3D_constant_BONE_UPDATE_MAX:
  48. .. rst-class:: classref-enumeration-constant
  49. :ref:`BoneUpdate<enum_XRHandModifier3D_BoneUpdate>` **BONE_UPDATE_MAX** = ``2``
  50. Represents the size of the :ref:`BoneUpdate<enum_XRHandModifier3D_BoneUpdate>` enum.
  51. .. rst-class:: classref-section-separator
  52. ----
  53. .. rst-class:: classref-descriptions-group
  54. Property Descriptions
  55. ---------------------
  56. .. _class_XRHandModifier3D_property_bone_update:
  57. .. rst-class:: classref-property
  58. :ref:`BoneUpdate<enum_XRHandModifier3D_BoneUpdate>` **bone_update** = ``0`` :ref:`🔗<class_XRHandModifier3D_property_bone_update>`
  59. .. rst-class:: classref-property-setget
  60. - |void| **set_bone_update**\ (\ value\: :ref:`BoneUpdate<enum_XRHandModifier3D_BoneUpdate>`\ )
  61. - :ref:`BoneUpdate<enum_XRHandModifier3D_BoneUpdate>` **get_bone_update**\ (\ )
  62. Specifies the type of updates to perform on the bones.
  63. .. rst-class:: classref-item-separator
  64. ----
  65. .. _class_XRHandModifier3D_property_hand_tracker:
  66. .. rst-class:: classref-property
  67. :ref:`StringName<class_StringName>` **hand_tracker** = ``&"/user/hand_tracker/left"`` :ref:`🔗<class_XRHandModifier3D_property_hand_tracker>`
  68. .. rst-class:: classref-property-setget
  69. - |void| **set_hand_tracker**\ (\ value\: :ref:`StringName<class_StringName>`\ )
  70. - :ref:`StringName<class_StringName>` **get_hand_tracker**\ (\ )
  71. The name of the :ref:`XRHandTracker<class_XRHandTracker>` registered with :ref:`XRServer<class_XRServer>` to obtain the hand tracking data from.
  72. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  73. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  74. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  75. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  76. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  77. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  78. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  79. .. |void| replace:: :abbr:`void (No return value.)`