There is nothing good in this capx, but it gives an idea of how it should be.
The ball moves on the click, the height changes with the mouse wheel.
What could be good?
Trigonometric solution, where it would be easy to change the camera angle to the horizon and the conditional angle FOV
Appealing to the collective mind