1:Vector3.magnitude
Returns the length of this vector (Read Only).
The length of the vector is square root of (x*x+y*y+z*z)
.
2:Transform.position
The position of the transform in world space.
限制value的值在min和max之间, 如果value小于min,返回min。 如果value大于max,返回max,否则返回value
static function Lerp (from : float, to : float, t : float) : float
基于浮点数t返回a到b之间的插值,t限制在0~1之间。