I have created a scene with 4 black screen and the camera in the middle and looking at screen 1.
I do added the mouseX and mouseY for camera rotation, purpose of this is for mouse hover the scene, the camera get minor rotation.
The problem is every time I press the next/prev button to rotate camera Y(-90/90 degree) to look at next screen, it will always go back to the screen 1 (0 degree), because of the mouseX and mouseY function affected, is there any idea or solution how to solve this? I have tried a lot of time to fix this but not working
top view of the scene
this is the code to turn the camera rotation Y to 90 degree.
this is the code of mouse X, Y to make the minor camera rotation.