Is it feasible to lock the x axis rotation when using OrbitControls? Currently I have an object model of a christmas star hung on a string. I want it to rotate only horizontally.
For your OrbitControls instance set
controls.minPolarAngle = Math.PI/2;
controls.maxPolarAngle = Math.PI/2;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With