Answers for "Unity Rotate around the real center"

C#
1

Unity Rotate around the real center

Vector3 position = myGameObject.GetComponent<Renderer>().bounds.center;

myGameObject.transform.RotateAround(position, rotationVector, degreesPerSecond * Time.deltaTime);
Posted by: Guest on May-02-2021

Code answers related to "Unity Rotate around the real center"

C# Answers by Framework

Browse Popular Code Answers by Language