Will
7
The snippet I sent was just an example, sorry for any confusion. Here is a thread that should be helpful:
I believe the relevant snippet here should achieve what you are looking for:
When the player loads, store the camera’s initial position:
let [pos, quat] = [player.camera.getPosition(), player.camera.getQuaternion()];
When you need to reset the camera, you can call the following:
player.camera.setPosition(pos);
player.camera.setQuaternion(quat);
1 Like