transform.RotateAround() Function in Unity

Notes:

transform.RotateAround() Function in Unity:

transform.RotateAround() method:
- is used to rotate a game object around given axis, passing through a given point at given degrees per second or per frame

Syntax:
public void RotateAround(Vector3 point, Vector3 axis, float degrees);
Rotate around y axis passing through world origin:
this.transform.RotateAround(new Vector3(0f,0f,0f),new Vector3(0f,1f,0f),45f * Time.deltaTime);
OR
this.transform.RotateAround(Vector3.zero,Vector3.up,45f * Time.deltaTime);

Rotate around y axis passing through parent origin:
this.transform.RotateAround(this.transform.parent.position, this.transform.parent.up,45f * Time.deltaTime);

Rotate around y axis passing through otherGameObject origin:
this.transform.RotateAround(otherGameObject.transform.position, otherGameObject.transform.up,45f * Time.deltaTime);