Unity Rotate around the real center

63

Unity Rotate around the real center -

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

myGameObject.transform.RotateAround(position, rotationVector, degreesPerSecond * Time.deltaTime);

Comments

Submit
0 Comments