Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

quaternion to euler

//Writes the rotation of the gameObject in euler angles
Debug.Log(transform.eulerAngles);

//Writes the rotation of the gameObject's x value in euler angles
Debug.Log(transform.eulerAngles.x);
 
PREVIOUS NEXT
Tagged: #quaternion #euler
ADD COMMENT
Topic
Name
2+3 =