Version: 5.4
public static Vector2 MoveTowards (Vector2 current, Vector2 target, float maxDistanceDelta);

설명

Moves a point current towards target.

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