pmndrs / racing-game

🏎 Open source racing game developed by everyone willing
https://racing.pmnd.rs/
MIT License
2.13k stars 176 forks source link

Camera reset missing #175

Closed njm222 closed 3 years ago

njm222 commented 3 years ago

Describe the bug When switching to the editor and using OrbitControls to rotate the camera and then switching out of the editor will cause the camera to be misaligned.

To Reproduce Steps to reproduce the behavior:

  1. Enable editor view 'E'
  2. Move the camera around
  3. Disable editor view 'E'
  4. The camera will be misaligned

Expected behavior The camera should be aligned as if you never moved the camera around in the editor