Hi!
I have a issue with switching cameras.
I just want to switch between camera1 and camera2.
Thats working nice by setting scene.activeCamera = camera2 for example.
BUT
If i switch to a camera1, than looking around with mouse and than switching again to camera2, the camera is moving around. It seems, that this is the movement of the last camera before switching.
Anyway i want to avoid this issue.
Here is my Playground: Babylon.js Playground
To see the issue:
0) we start with camera1
- press “b” (switch to camera2)
- please look around a little bit with mouse
- press “a” (switch to camera1)
you can toggle between “a” and “b” again and again and if you look around than the camera has this moving issue.
(my camera1 in the script is called “camera”, please dont be irritated)
Please can someone help me to avoid this?
Thank you in advice!