Answers for "unity how does rotation work"

0

unity rotation

// set rotation angles (local coordinates) of an object
gameObject.transform.eulerAngles = new Vector3(xAngle, yAngle, zAngle);

// rotate object by given values
gameObject.transform.Rotate(xDiff, yDiff, zDiff);
Posted by: Guest on April-01-2022

Browse Popular Code Answers by Language