Modify the XRHandModifier3D to scale appropriately with Skeleton3D.motion_scale and XRServer.world_scale

This commit is contained in:
Malcolm Nixon
2024-03-03 23:08:23 -05:00
parent f2045ba822
commit 2fdabd97f9
2 changed files with 12 additions and 5 deletions

View File

@@ -5,6 +5,8 @@
</brief_description>
<description>
This node uses hand tracking data from a [XRHandTracker] to animate the skeleton of a hand mesh.
This node positions itself at the [constant XRHandTracker.HAND_JOINT_PALM] position and scales itself to [member XRServer.world_scale]. Adding the hand model as a child of this node will result in the model being positioned and scaled correctly for XR experiences.
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.
</description>
<tutorials>
<link title="XR documentation index">$DOCS_URL/tutorials/xr/index.html</link>