close

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的公式再加上開根號。

 

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

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

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 F 的頭像
    F

    F的部落格

    F 發表在 痞客邦 留言(0) 人氣()