The ball points towards the mouse pointer and you need to click to throw.
This is one of my best and most complicated projects. All the math was done by me and me only (I used the calulator once to check my work). If it starts glitching it's probably because I'm In the middle of improving it.