I’m trying to develop a little sketch that manages the trajectory of balls that fall from the top of the canvas, as shown on this diagram.
I want each ball thrown from the top of the canvas to have a trajectory that points to the middle of the canvas at the bottom, where the stationary player is located. (represented here by a triangle).
Could someone suggest a piece of code that would be suitable?
Many thanks in advance.