rotation 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: rotation around own axis in unity
transform.RotateAround(transform.position, transform.up, Time.deltaTime * 90f);
Example 3: unity rotate around axis
transform.Rotate(axis, degrees);