I am trying to move a 3d character like a 2d character in a platform game. What I mean is; when I press D, the character should rotate and move to the right , and when I press A, the character should rotate and move to the left . I thought this wouldn’t be a problem, but i’m really experiencing problems trying to make a script for this, anyone that knows how I could do this?
You can use transform.forward = Vector3.left;
or transform.forward = Vector3.right;
to have your character look in a particular direction immediately.
1 Like