My three.js project features a 3D object that is meant to be viewed from the front only, as it appears as a single plane and is transparent from the back...
Using orbitControls, I have restricted movement of both azimuth and polar angle...
To enhance the visual appeal of the 3D object, I want it to begin rotating...
function animate() {
if ( mesh ) {
mesh.rotation.y += .005;
}
requestAnimationFrame( animate );
render();
}
How can I constrain the motion to move between -90° and 90° in both directions?