Answers for "unity rotate around a pivot"

C#
1

unity rotate around pivot c#

public Transform customPivot;

void Update()
{
    transform.RotateAround(customPivot.position, Vector3.up, 20 * Time.deltaTime);
}
Posted by: Guest on August-03-2020

Code answers related to "unity rotate around a pivot"

C# Answers by Framework

Browse Popular Code Answers by Language