In my three.js project, I have a scene with OrbitControls that allows me to rotate the camera around the origin at position 0,0,0
.
I am attempting to restrict the camera rotation to only rotate vertically along the y-axis infinitely (up or down).
You can view the scene I am working on by clicking the link below:
I have tried setting the following properties, but it does not allow for a complete round rotation and is not infinite:
controls.minAzimuthAngle = 0;
controls.maxAzimuthAngle = 0;
I found a related question that explains how to lock the camera rotation on the x-axis, but I need help modifying it to lock rotation on the y-axis only: Lock x axis rotation when using OrbitControls - Three.js