Co-authored-by: Reifonas <211114984+Reifonas@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-05-18 20:09:50 +00:00
parent d3cebaaa3a
commit 2ab7b65145
+9
View File
@@ -145,6 +145,15 @@ export function XRHudInWorld(props: XRHudInWorldProps) {
wristRef.current.visible = false;
}
}
// Head-locked fallback toggle — always visible in lower-left of FOV,
// so the user can reopen the menu even without controllers or if the
// panel is positioned out of view.
if (headLockRef.current) {
const offset = new THREE.Vector3(-0.18, -0.18, -0.5).applyQuaternion(camera.quaternion);
headLockRef.current.position.copy(camera.position).add(offset);
headLockRef.current.quaternion.copy(camera.quaternion);
}
});
return (