23.08.2017, 23:25
Okay so I didn't run your code yet but from what I can see you're missing some extra trigonometry to calculate the velocity vector from the player to the ball, weighted by the (cubic root?) distance in between. I didn't have time to compile your code yet, let alone work on it, but will help you as soon as I get some free time.