unity rotate gameobject on y axis code example Example: unity rotate around axis transform.Rotate(axis, degrees);