ドキュメント

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.