Understand Orbit rotations, Dolly, and Zoom in camera-controls
devOrbit rotations
camera-controls uses Spherical Coordinates for orbit rotations. For a Y-up camera system:
- Azimuthal angle: The angle for rotation around the Y-axis.
- Polar angle: The angle for vertical position.
Note: The .azimuthAngle is accumulative. Every 360-degree turn adds to the value (e.g., 720° = Math.PI * 4).
Dolly vs Zoom
- Zoom: Changes the lens focal length (in three.js, this changes the camera FOV). The camera position remains stationary.
- Dolly: Physically moves the camera to change the composition of the image in the frame.