Hi. I’m making a game and want missiles to get fired at the player.
I found the function Vector2.MoveTowards
, the problem is that the function makes the missile stop once it has reached its targets position.
-
Is there any way to make it carry on in the same trajectory?
-
Or is there another function that just gives me the amount you need to move per frame by the
x
andy
coordinates to get to the target position?