Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Unity Rotate around the real center

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

myGameObject.transform.RotateAround(position, rotationVector, degreesPerSecond * Time.deltaTime);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Unity #Rotate #real #center
ADD COMMENT
Topic
Name
1+1 =