Quaternion.Dot 点乘
static function Dot (a : Quaternion, b : Quaternion) : float
Description描述
The dot product between two rotations.
两个旋转之间的点乘。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
public void Awake() {
print(Quaternion.Dot(transform.rotation, Quaternion.identity));
}
}
print(Quaternion.Dot (transform.rotation, Quaternion.identity));
最后修改:2011年1月16日 Sunday 16:16