rotate along a point in unity code example
Example 1: unity rotate around pivot c#
public Transform customPivot;
void Update()
{
transform.RotateAround(customPivot.position, Vector3.up, 20 * Time.deltaTime);
}
Example 2: unity rotate around point
transform.RotateAround(point, axis, degrees);