Quaternion.ToAngleAxis Manual     Reference     Scripting  
Scripting > Runtime Classes > Quaternion
Quaternion.ToAngleAxis

function ToAngleAxis (out angle : float, out axis : Vector3) : void

Description

Converts a rotation to angle-axis representation.

// Extracts the angle - axis rotation from the transform rotation
var angle = 0.0;
var axis = Vector3.zero;
transform.rotation.ToAngleAxis(angle, axis);