So my game is currently 2d and I wanted to be able to dash/move towards mouse. my code is currently
movement.x += -40; for dashing (I know its not great but its just place holder for now.) I already have a the mouse position but was wondering how to make the player dash in the direction of the mouse?
Here some stuff:

And here’s some other stuff:

Those two things need to be considered together, and neither one is code-only. It’s going to be code and setup and iterative engineering.