Top Down Line Trace

That worked, but maybe my line of thinking is wrong. Since its a top down game, the projectile needs to be always a certain distance from the surface.

The line trace now works, but its acting in a 3d enviroment. I need it to go in the direction of the cursor, but in 2d if that makes sence, so it does’nt go up.