文档

Unity Engine

Unity Engine

remainingDistance

The distance between the agent's position and the destination on the current path.
阅读时间1 分钟最后更新于 1 个月前

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.