make objects rotate around point unity code example
Example 1: unity rotate around axis
transform.Rotate(axis, degrees);
Example 2: unity rotate around point
transform.RotateAround(point, axis, degrees);
transform.Rotate(axis, degrees);
transform.RotateAround(point, axis, degrees);