Does anyone know how to get a character to rotate and move in the direction of the key they press?
Like pressing the left key makes the character look left and move that way?
I tried this
The turning direction is fixed but it still moves in only one direction.
[Edit Berenger : Code formatting]
Affect moveDirection to the forward, not a new Vector3. If you want the rotation to happen slower, use Vector3.Lerp( transform.forward, moveDirection, Time.deltaTime * rotSpeed ), or even Mathf.Lerp, as your game isn't 3D you will only need one axe.
answered Mar 05 '12 at 04:50 PM