0.2.0-dev Download ZIP
33 lines ·1.9 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="XRHandModifier3D" inherits="SkeletonModifier3D" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | A node for driving hand meshes from [XRHandTracker] data. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | This node uses hand tracking data from an [XRHandTracker] to pose the skeleton of a hand mesh. |
| 8 | Positioning of hands is performed by creating an [XRNode3D] ancestor of the hand mesh driven by the same [XRHandTracker]. |
| 9 | The hand tracking position-data is scaled by [member 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. |
| 10 | </description> |
| 11 | <tutorials> |
| 12 | <link title="XR documentation index">$DOCS_URL/tutorials/xr/index.html</link> |
| 13 | </tutorials> |
| 14 | <members> |
| 15 | <member name="bone_update" type="int" setter="set_bone_update" getter="get_bone_update" enum="XRHandModifier3D.BoneUpdate" default="0"> |
| 16 | Specifies the type of updates to perform on the bones. |
| 17 | </member> |
| 18 | <member name="hand_tracker" type="StringName" setter="set_hand_tracker" getter="get_hand_tracker" default="&"/user/hand_tracker/left""> |
| 19 | The name of the [XRHandTracker] registered with [XRServer] to obtain the hand tracking data from. |
| 20 | </member> |
| 21 | </members> |
| 22 | <constants> |
| 23 | <constant name="BONE_UPDATE_FULL" value="0" enum="BoneUpdate"> |
| 24 | The skeleton's bones are fully updated (both position and rotation) to match the tracked bones. |
| 25 | </constant> |
| 26 | <constant name="BONE_UPDATE_ROTATION_ONLY" value="1" enum="BoneUpdate"> |
| 27 | The skeleton's bones are only rotated to align with the tracked bones, preserving bone length. |
| 28 | </constant> |
| 29 | <constant name="BONE_UPDATE_MAX" value="2" enum="BoneUpdate"> |
| 30 | Represents the size of the [enum BoneUpdate] enum. |
| 31 | </constant> |
| 32 | </constants> |
| 33 | </class> |