Here’s the part of my code that drives movement on my player. It works fine, just that I couldn’t figure out a way to smooth out the turning. It can get especially jerky because as the game goes on the player speeds up. So does anyone know how to smooth out the turning? Thanks in advance
function Update() {
transform.Translate(Vector3.forward*Time.deltaTime*playerSpeed);
if (Input.GetKey ("left")) {
transform.Rotate(0, -Time.deltaTime*turnspeed, 0);
}
if (Input.GetKey ("right")) {
transform.Rotate(0, Time.deltaTime*turnspeed, 0);
}
}