remainingDistance
The distance between the agent's position and the destination on the current path.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Property
- Namespace: UnityEngine.AI
- Assembly: UnityEngine.AIModule
public float remainingDistance { get; }
Remarks
If the remaining distance is unknown then this will have a value of infinity.