Mesh rotation, override camera

Hi I am trying to override the camera to rotate on different axis, I can do this on key press but wanted to know how it can be done via the mouse, for instance enable Z axis rotation then when you move the mouse it will only spin on that axis.

How can I override the camera in this instance?

here is a simple PG to show what am trying to do

You need a different camera. The arcRotationCamera won’t be the best one for this. You can simply call camera.rotation.z = Math.PI/2; using a Universal Camera.

thanks i’ll give it a try