Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/components/hand-tracking-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down
Loading