How to change direction of movement
Hello everyone, I need help with a player movement. I'd like that my Player changed direction of the movement when I press mouse button. I'd like also that my Player was blocked/stopped by walls. Player will moves at the X axis.
Comment
If your player moves by adding force, a possible solution would be to multiple the force by -1 when you click the mouse so it reverses the direction your player is moving.
Your answer
Follow this Question
Related Questions
Why does my player move without any buttons being pressed? 1 Answer
I can't move my player in a fps? 1 Answer
IsPointerOverGameObject() returns Object reference not set to an instance of an object 2 Answers
Photon Player Mover Failure 1 Answer
Is there a way to move a player with forces only if the mouse has changed position? 1 Answer