I’m using a grid movement system and I’m trying to figure out how to rotate my first person character with a key press and have him strafe or sidestep left and right. The character moves and rotates, but that’s together. I want the character to rotate separately. I should probably say that I’m using the js version of the GridMove script Eric5h5 created. I could probably use the C# version considering the character doesn’t rotate in that script. Which ever one is easier for you to help me on.
Edit: I got it with the following code but it turns way to fast. How do I slow it down. Also I forgot to say that I need it to rotate in 90 degree angles.
if (Input.GetKey(KeyCode.E)) transform.Rotate(0, 90, 0);
if (Input.GetKey(KeyCode.Q)) transform.Rotate(0, -90, 0);