Move the player anywhere with mouse. Click him and he will start to move towards target. Once he collides the game will tell u what kind of collision he had. Like magic! Very efficient maths.
WIP Still need to programe in corner cases and maybe make prettier