| Parameter | Description |
|---|---|
| current | The current point. |
| target | The target point. |
| maxDistanceDelta | The maximum distance to allow. Use a negative value to push the vector away from the target. |
Vector4
The new position, moved from current towards target by at most maxDistanceDelta.
Moves a point current towards target.
This is essentially the same as Vector4.Lerp but instead the method ensures that the distance moved never exceeds maxDistanceDelta.
Negative values of maxDistanceDelta pushes the vector away from target.