From e3e9cd1b7fdbb52ab443721ee3f039be5b62ac85 Mon Sep 17 00:00:00 2001 From: Noeri Huisman <8823461+mrxz@users.noreply.github.com> Date: Tue, 22 Sep 2026 11:11:51 +0200 Subject: [PATCH] Take world transform of hand-tracking-controls into account when updating wristObject --- src/components/hand-tracking-controls.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/hand-tracking-controls.js b/src/components/hand-tracking-controls.js index 65c8de755d4..aad1cd7b970 100644 --- a/src/components/hand-tracking-controls.js +++ b/src/components/hand-tracking-controls.js @@ -194,6 +194,10 @@ export var Component = registerComponent('hand-tracking-controls', { var wristObject3D = this.wristObject3D; if (!wristObject3D || !this.hasPoses) { return; } jointPose.fromArray(this.jointPoses, WRIST_INDEX * 16); + // The wrist object is added to the scene root, so apply parent transform + this.el.object3D.updateWorldMatrix(true, false); + jointPose.premultiply(this.el.object3D.matrixWorld); + wristObject3D.position.setFromMatrixPosition(jointPose); wristObject3D.quaternion.setFromRotationMatrix(jointPose); };