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

Descripción

Mueve un punto current hacia 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.