Orbit controls and 2D rotation

Hello. I use OrbitControls for a 2D map. How can i rotate the camera by z-axis only.

1 Like

Um, I’m confused since OrbitControls does not rotate around its z-axis at all.

Maybe you can help me. How can i rotate the camera along the axis Z using the mouse move event.

In other words you want to perform a roll like shown here?


Yes. But now I think that it will be more correct to rotate the scene. But I don’t understand how to link the movements of the mouse to the rotation of the scene

For example like so: https://jsfiddle.net/nxzr1d9a/2/

The idea is to use the event data to modulate mesh.rotation.z:

mesh.rotation.z -= event.deltaY * speed;