:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/XRHandModifier3D.xml. .. _class_XRHandModifier3D: XRHandModifier3D ================ **Inherits:** :ref:`SkeletonModifier3D` **<** :ref:`Node3D` **<** :ref:`Node` **<** :ref:`Object` A node for driving hand meshes from :ref:`XRHandTracker` data. .. rst-class:: classref-introduction-group Description ----------- This node uses hand tracking data from an :ref:`XRHandTracker` to pose the skeleton of a hand mesh. Positioning of hands is performed by creating an :ref:`XRNode3D` ancestor of the hand mesh driven by the same :ref:`XRHandTracker`. The hand tracking position-data is scaled by :ref:`Skeleton3D.motion_scale` when applied to the skeleton, which can be used to adjust the tracked hand to match the scale of the hand model. .. rst-class:: classref-introduction-group Tutorials --------- - :doc:`XR documentation index <../tutorials/xr/index>` .. rst-class:: classref-reftable-group Properties ---------- .. table:: :widths: auto +-----------------------------------------------------+-------------------------------------------------------------------+--------------------------------+ | :ref:`BoneUpdate` | :ref:`bone_update` | ``0`` | +-----------------------------------------------------+-------------------------------------------------------------------+--------------------------------+ | :ref:`StringName` | :ref:`hand_tracker` | ``&"/user/hand_tracker/left"`` | +-----------------------------------------------------+-------------------------------------------------------------------+--------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Enumerations ------------ .. _enum_XRHandModifier3D_BoneUpdate: .. rst-class:: classref-enumeration enum **BoneUpdate**: :ref:`🔗` .. _class_XRHandModifier3D_constant_BONE_UPDATE_FULL: .. rst-class:: classref-enumeration-constant :ref:`BoneUpdate` **BONE_UPDATE_FULL** = ``0`` The skeleton's bones are fully updated (both position and rotation) to match the tracked bones. .. _class_XRHandModifier3D_constant_BONE_UPDATE_ROTATION_ONLY: .. rst-class:: classref-enumeration-constant :ref:`BoneUpdate` **BONE_UPDATE_ROTATION_ONLY** = ``1`` The skeleton's bones are only rotated to align with the tracked bones, preserving bone length. .. _class_XRHandModifier3D_constant_BONE_UPDATE_MAX: .. rst-class:: classref-enumeration-constant :ref:`BoneUpdate` **BONE_UPDATE_MAX** = ``2`` Represents the size of the :ref:`BoneUpdate` enum. .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Property Descriptions --------------------- .. _class_XRHandModifier3D_property_bone_update: .. rst-class:: classref-property :ref:`BoneUpdate` **bone_update** = ``0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_bone_update**\ (\ value\: :ref:`BoneUpdate`\ ) - :ref:`BoneUpdate` **get_bone_update**\ (\ ) Specifies the type of updates to perform on the bones. .. rst-class:: classref-item-separator ---- .. _class_XRHandModifier3D_property_hand_tracker: .. rst-class:: classref-property :ref:`StringName` **hand_tracker** = ``&"/user/hand_tracker/left"`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_hand_tracker**\ (\ value\: :ref:`StringName`\ ) - :ref:`StringName` **get_hand_tracker**\ (\ ) The name of the :ref:`XRHandTracker` registered with :ref:`XRServer` to obtain the hand tracking data from. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)` .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)` .. |void| replace:: :abbr:`void (No return value.)`