diff --git a/scripts/esm/camera-controls.mjs b/scripts/esm/camera-controls.mjs index 429f258db02..169a907a852 100644 --- a/scripts/esm/camera-controls.mjs +++ b/scripts/esm/camera-controls.mjs @@ -319,13 +319,9 @@ class CameraControls extends Script { const position = new Vec3(); const rotation = new Quat(); this.app.xr.on('start', () => { - // Store the position and rotation of the camera + // Store the camera's position and rotation position.copy(this.entity.getPosition()); rotation.copy(this.entity.getRotation()); - - // Set the camera's position to the ground - const pos = this.entity.getPosition(); - this.entity.setPosition(pos.x, 0, pos.z); }); this.app.xr.on('end', () => { // Restore the camera's position and rotation