Why does this work : transform.Rotate(Vector3.forward);

In this code, Vector3.forward is only specifying the axis of rotation. Where does the magnitude of rotation come from? It works, but I’m not sure why it’s working.

if(Input.GetKey(KeyCode.A))
{
    transform.Rotate(Vector3.forward);
}

Privacy & Terms