# remainingDistance

> The distance between the agent's position and the destination on the current path.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.AI](/engine/6000.5/script-reference/unityengine/ai.md)
* **Assembly:** UnityEngine.AIModule

```csharp
public float remainingDistance { get; }
```

### Remarks

If the remaining distance is unknown then this will have a value of infinity.
