# MoveTowards(Vector4, Vector4, float)

> Moves a point current towards target.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static Vector4 MoveTowards(Vector4 current, Vector4 target, float maxDistanceDelta)
```

### Parameters

**** (\[Vector4]\(/engine/6000.0/script-reference/unityengine/vector4)): The current point.**** (\[Vector4]\(/engine/6000.0/script-reference/unityengine/vector4)): The target point.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The maximum distance to allow. Use a negative value to push the vector away from the `target`.

### Returns

| Type                                                              | Description                                                                            |
| ----------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| [Vector4](/engine/6000.0/script-reference/unityengine/vector4.md) | The new position, moved from `current` towards `target` by at most `maxDistanceDelta`. |

### Remarks

This is essentially the same as [Vector4.Lerp](/engine/6000.0/script-reference/unityengine/vector4/lerp.md) but instead the method ensures that the distance moved never exceeds `maxDistanceDelta`. Negative values of `maxDistanceDelta` pushes the vector away from `target`.
