Vector4.MoveTowards 移向

static function MoveTowards (current : Vector4, target : Vector4, maxDistanceDelta : float) : Vector4

Description描述

Moves a point current towards target.

当前的地点移向目标。

This is essentially the same as Vector4.Lerp but instead the function will ensure that the speed never exceeds maxDistanceDelta. Negative values of maxDistanceDelta pushes the vector away from target.

这个函数基本上和Vector4.Lerp相同,但是该函数将确保我们的速度不会超过maxDistanceDelta。maxDistanceDelta的负值情况表示远离目标向量。

Page last updated: 2011-1-9