Changes
Co-authored-by: Reifonas <211114984+Reifonas@users.noreply.github.com>
This commit is contained in:
@@ -145,6 +145,15 @@ export function XRHudInWorld(props: XRHudInWorldProps) {
|
|||||||
wristRef.current.visible = false;
|
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 (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user