How can we use Three.js and JavaScript/ WebGL to create a camera that orbits a sphere at a fixed height, with a fixed forward speed, and maintaining a fixed orientation in relation to the sphere? The user should only be able to steer the camera left and right.
Visualize an airplane connected by an invisible string to the center of a globe, skimming close to the ground and always keeping part of the sphere in view:
(I have code that currently rotates the sphere to create a flying effect for the camera, but the left and right steering feature has not been implemented yet. I'm considering repositioning the camera/ airplane instead of moving the sphere group before proceeding further.)
Any suggestions are appreciated! Thank you!