3rd person - player control

I’m a beginner. I managed to make my character move in all directions but he can’t rotate. I also made a 3rd person camera I can control with my mouse.

What I want to do is to make the character able to rotate and walk/run forward in all directions with the up key being the way the camera’s facing (basically an ordinary 3rd person game - I don’t know how to explain it more clearly).


In the same way you move your character (GameObject) you can rotate it by using TRANSFORM,gameObject.transform.Rotate(). Try this gameObject.transform.Rotate(new Vector3(0,Time.deltaTime *2,0).

Note that you need to replace “gameObject” by your character(GameObject)