class_xrbodymodifier3d.rst 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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/XRBodyModifier3D.xml.
  6. .. _class_XRBodyModifier3D:
  7. XRBodyModifier3D
  8. ================
  9. **Experimental:** This class may be changed or removed in future versions.
  10. **Inherits:** :ref:`SkeletonModifier3D<class_SkeletonModifier3D>` **<** :ref:`Node3D<class_Node3D>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  11. A node for driving body meshes from :ref:`XRBodyTracker<class_XRBodyTracker>` data.
  12. .. rst-class:: classref-introduction-group
  13. Description
  14. -----------
  15. This node uses body tracking data from an :ref:`XRBodyTracker<class_XRBodyTracker>` to pose the skeleton of a body mesh.
  16. Positioning of the body is performed by creating an :ref:`XRNode3D<class_XRNode3D>` ancestor of the body mesh driven by the same :ref:`XRBodyTracker<class_XRBodyTracker>`.
  17. The body 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 body to match the scale of the body model.
  18. .. rst-class:: classref-introduction-group
  19. Tutorials
  20. ---------
  21. - :doc:`XR documentation index <../tutorials/xr/index>`
  22. .. rst-class:: classref-reftable-group
  23. Properties
  24. ----------
  25. .. table::
  26. :widths: auto
  27. +-------------------------------------------------------------------+-------------------------------------------------------------------+---------------------------+
  28. | :ref:`StringName<class_StringName>` | :ref:`body_tracker<class_XRBodyModifier3D_property_body_tracker>` | ``&"/user/body_tracker"`` |
  29. +-------------------------------------------------------------------+-------------------------------------------------------------------+---------------------------+
  30. | |bitfield|\[:ref:`BodyUpdate<enum_XRBodyModifier3D_BodyUpdate>`\] | :ref:`body_update<class_XRBodyModifier3D_property_body_update>` | ``7`` |
  31. +-------------------------------------------------------------------+-------------------------------------------------------------------+---------------------------+
  32. | :ref:`BoneUpdate<enum_XRBodyModifier3D_BoneUpdate>` | :ref:`bone_update<class_XRBodyModifier3D_property_bone_update>` | ``0`` |
  33. +-------------------------------------------------------------------+-------------------------------------------------------------------+---------------------------+
  34. .. rst-class:: classref-section-separator
  35. ----
  36. .. rst-class:: classref-descriptions-group
  37. Enumerations
  38. ------------
  39. .. _enum_XRBodyModifier3D_BodyUpdate:
  40. .. rst-class:: classref-enumeration
  41. flags **BodyUpdate**: :ref:`🔗<enum_XRBodyModifier3D_BodyUpdate>`
  42. .. _class_XRBodyModifier3D_constant_BODY_UPDATE_UPPER_BODY:
  43. .. rst-class:: classref-enumeration-constant
  44. :ref:`BodyUpdate<enum_XRBodyModifier3D_BodyUpdate>` **BODY_UPDATE_UPPER_BODY** = ``1``
  45. The skeleton's upper body joints are updated.
  46. .. _class_XRBodyModifier3D_constant_BODY_UPDATE_LOWER_BODY:
  47. .. rst-class:: classref-enumeration-constant
  48. :ref:`BodyUpdate<enum_XRBodyModifier3D_BodyUpdate>` **BODY_UPDATE_LOWER_BODY** = ``2``
  49. The skeleton's lower body joints are updated.
  50. .. _class_XRBodyModifier3D_constant_BODY_UPDATE_HANDS:
  51. .. rst-class:: classref-enumeration-constant
  52. :ref:`BodyUpdate<enum_XRBodyModifier3D_BodyUpdate>` **BODY_UPDATE_HANDS** = ``4``
  53. The skeleton's hand joints are updated.
  54. .. rst-class:: classref-item-separator
  55. ----
  56. .. _enum_XRBodyModifier3D_BoneUpdate:
  57. .. rst-class:: classref-enumeration
  58. enum **BoneUpdate**: :ref:`🔗<enum_XRBodyModifier3D_BoneUpdate>`
  59. .. _class_XRBodyModifier3D_constant_BONE_UPDATE_FULL:
  60. .. rst-class:: classref-enumeration-constant
  61. :ref:`BoneUpdate<enum_XRBodyModifier3D_BoneUpdate>` **BONE_UPDATE_FULL** = ``0``
  62. The skeleton's bones are fully updated (both position and rotation) to match the tracked bones.
  63. .. _class_XRBodyModifier3D_constant_BONE_UPDATE_ROTATION_ONLY:
  64. .. rst-class:: classref-enumeration-constant
  65. :ref:`BoneUpdate<enum_XRBodyModifier3D_BoneUpdate>` **BONE_UPDATE_ROTATION_ONLY** = ``1``
  66. The skeleton's bones are only rotated to align with the tracked bones, preserving bone length.
  67. .. _class_XRBodyModifier3D_constant_BONE_UPDATE_MAX:
  68. .. rst-class:: classref-enumeration-constant
  69. :ref:`BoneUpdate<enum_XRBodyModifier3D_BoneUpdate>` **BONE_UPDATE_MAX** = ``2``
  70. Represents the size of the :ref:`BoneUpdate<enum_XRBodyModifier3D_BoneUpdate>` enum.
  71. .. rst-class:: classref-section-separator
  72. ----
  73. .. rst-class:: classref-descriptions-group
  74. Property Descriptions
  75. ---------------------
  76. .. _class_XRBodyModifier3D_property_body_tracker:
  77. .. rst-class:: classref-property
  78. :ref:`StringName<class_StringName>` **body_tracker** = ``&"/user/body_tracker"`` :ref:`🔗<class_XRBodyModifier3D_property_body_tracker>`
  79. .. rst-class:: classref-property-setget
  80. - |void| **set_body_tracker**\ (\ value\: :ref:`StringName<class_StringName>`\ )
  81. - :ref:`StringName<class_StringName>` **get_body_tracker**\ (\ )
  82. The name of the :ref:`XRBodyTracker<class_XRBodyTracker>` registered with :ref:`XRServer<class_XRServer>` to obtain the body tracking data from.
  83. .. rst-class:: classref-item-separator
  84. ----
  85. .. _class_XRBodyModifier3D_property_body_update:
  86. .. rst-class:: classref-property
  87. |bitfield|\[:ref:`BodyUpdate<enum_XRBodyModifier3D_BodyUpdate>`\] **body_update** = ``7`` :ref:`🔗<class_XRBodyModifier3D_property_body_update>`
  88. .. rst-class:: classref-property-setget
  89. - |void| **set_body_update**\ (\ value\: |bitfield|\[:ref:`BodyUpdate<enum_XRBodyModifier3D_BodyUpdate>`\]\ )
  90. - |bitfield|\[:ref:`BodyUpdate<enum_XRBodyModifier3D_BodyUpdate>`\] **get_body_update**\ (\ )
  91. Specifies the body parts to update.
  92. .. rst-class:: classref-item-separator
  93. ----
  94. .. _class_XRBodyModifier3D_property_bone_update:
  95. .. rst-class:: classref-property
  96. :ref:`BoneUpdate<enum_XRBodyModifier3D_BoneUpdate>` **bone_update** = ``0`` :ref:`🔗<class_XRBodyModifier3D_property_bone_update>`
  97. .. rst-class:: classref-property-setget
  98. - |void| **set_bone_update**\ (\ value\: :ref:`BoneUpdate<enum_XRBodyModifier3D_BoneUpdate>`\ )
  99. - :ref:`BoneUpdate<enum_XRBodyModifier3D_BoneUpdate>` **get_bone_update**\ (\ )
  100. Specifies the type of updates to perform on the bones.
  101. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  102. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  103. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  104. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  105. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  106. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  107. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  108. .. |void| replace:: :abbr:`void (No return value.)`