SOLVED (Vehicle Battlefield Movement update)

I have a little movement problem. I’m transferring all movement (In the game) to Cursor movement, where the object moves towards the cursor. I have the basic coding. the only problem is; the player continues in the same direction until it hits a wall. It cannot be stopped unless I move it in a different direction.

I need to fix this before anyone else plays my game.



1 Like

What does this mean? Do you want it so when you hold down the mouse it moves towards the mouse or somthing else?

just add
up from spacebar to get 0 velocity

this will work.

because the object is not effected by gravity, it will continue in that direction until another force is applied. You just need to set velocity to 0.

1 Like

Thanks! I was thinking of something like that.