how to make an object rotate on an axis unity code example
Example 1: how to rotate object unity
public Transform Position; // make reference in inspector
Position.Rotate(x, y, z);
Example 2: unity rotate around axis
transform.Rotate(axis, degrees);