kovacsv / JSModeler

A JavaScript framework to create and visualize 3D models.
MIT License
648 stars 124 forks source link

How can I limit the camera rotation? #32

Open mrtndimitrov opened 6 years ago

mrtndimitrov commented 6 years ago

I tried using THREE.OrbitControls but I can't make it work. Is it achievable? I want to limit the camera on the Y axis (not to dive under the surface). Thanks.