Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity rotate around pivot c#

public Transform customPivot;

void Update()
{
    transform.RotateAround(customPivot.position, Vector3.up, 20 * Time.deltaTime);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #unity #rotate #pivot
ADD COMMENT
Topic
Name
2+5 =