http://docs.unity3d.com/ScriptReference/Vector3.html

Vector3.magnitude : 公式= ((x*x+y*y+z*z))

Vector3.normalized :返回向量值,最大為1,公式=sqrt((vec.x * vec.x) + (vec.y * vec.y) + (vec.z * vec.z))

Vector3.sqrMagnitude:基本上就是Vector3.magnitude的公式再加上開根號。

 

主要是常常忘記怎麼用,所以記錄下來。

之後瞭解更多 再好好整理。

相關文章