How to limit camera rotation?

How to limit camera rotation to make it look like in the example (
I tried another solution, which works similarly, but it uses lookAt…

How about using the controls of:

You only have to add a zoom event listener which translates the camera along the z-axis.

Thx for responce, but this example rotates mesh, it doesn’t change the camera. Please take a look at my example.

I’ve just started using FirstPersonControls, it works good, but supports only constrainVertical, but I need a constrainHorizontal too.

Hello Andrew. Just curious as to whether or not you were ever able to find a solution to this question? I believe I’m trying to achieve the same effect.