unity rotate to angle over time code example Example: unity rotate object over time transform.Rotate( Vector3.up * ( rotationSpeed * Time.deltaTime));