【问题标题】:How to check if a path exists to certain point on NavMesh for a NavMeshAgent in Unity?如何检查 Unity 中 NavMeshAgent 的路径是否存在到 NavMesh 上的某个点?
【发布时间】:2020-04-25 03:49:57
【问题描述】:

我有一个使用 SetDestination() 的 NavMeshAgent,但代理总是试图尽可能靠近目的地,即使该位置无法到达。

【问题讨论】:

    标签: unity3d path-finding agent navmesh


    【解决方案1】:

    尝试使用 NavMeshPathStatus.PathComplete 检查路径是否在目的地结束。

    这是针对类似问题的 Unity 答案 https://answers.unity.com/questions/1197626/navmesh-how-to-check-if-full-path-available-c.html

    【讨论】:

      猜你喜欢
      • 2020-10-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-04-29
      • 2016-06-02
      • 2019-09-15
      • 1970-01-01
      相关资源
      最近更新 更多