Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (6 sloc) 173 Bytes

Quaternion

SnapRotation

Snaps a rotation to the specified angle.

gameObject.transform.rotation = gameObject.transform.rotation.SnapToRotation(45);
You can’t perform that action at this time.