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.
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.
Share Improve this question asked Dec 14, 2016 at 5:40 Safal PillaiSafal Pillai 1,6371 gold badge17 silver badges31 bronze badges1 Answer
Reset to default 23For your OrbitControls instance set
controls.minPolarAngle = Math.PI/2;
controls.maxPolarAngle = Math.PI/2;