Hey I have a camera which films down from a top-down view. Is it possible to rotate the camera around the Y axes? I want it to rotate 90 degree on button click. orthCamera.rotation.y = Math.PI / 2
does not work
Do you mean like so?
https://jsfiddle.net/bvxmrshu/
Be aware that you have to modulate z
because of gimbal lock.
1 Like
Ah I see, yep thats working. Tho there’s another issue. Orbit controls gets updated each frame and it is rotating it back to default.
https://jsfiddle.net/bvxmrshu/
Maybe i have to rotate my scene to get what I want
I’m afraid it does not make sense to use a controls class and then transform the camera manually at the same time. It’s best if you stick to one approach to avoid undefined side effects.