I tried using BodyPosition, which works ok but the thing is with BodyPosition when I click on something the projectile doesn't travel in a straight path (or if i dont click on anything the projectile flings itself to who knows where)
Here's what I used:
projectile.BodyPosition.Position = Mouse.hit.Position
I don't think BodyVelocity will work either, because I don't want the projectile to just go forward in the direction the player is facing, but for it to be shootable in any direction (towards the mouse).
I also don't think raycasting will do the job either (Although I may be mistaken) because everything i've seen on raycasting so far just shows like a laserbeam towards the mouse that disappears after a second and not really anything projectile based.
So, is there a better way to move my projectile? If so, what?
edit: I also don't want it to travel in an arc either
It is possible to "segment" rays to get a projectile speed effect. The projectile (ray) travels 10 studs (in this example) then stops, if it doesn't hit something it continues where it stopped. If however it does hit something it will stop.
I don't remember how to do this on the top of my head but i recommend that you should look into raycasting.