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);
最后修改:2011年1月16日 Sunday 18:00