Vector3.MoveTowards Manual     Reference     Scripting  
Scripting > Runtime Classes > Vector3
Vector3.MoveTowards

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

Description

Moves a point current towards target.

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