unity rotate axis code example
Example 1: rotation around own axis in unity
transform.RotateAround(transform.position, transform.up, Time.deltaTime * 90f);
Example 2: unity rotate around axis
transform.Rotate(axis, degrees);
transform.RotateAround(transform.position, transform.up, Time.deltaTime * 90f);
transform.Rotate(axis, degrees);