Search Unity

I don't understand why my NavAgent is taking the long way

Discussion in 'Navigation' started by danield, Aug 22, 2019.

  1. danield

    danield

    Joined:
    Sep 30, 2014
    Posts:
    40
    Hello,
    I'm in the process of prototyping, and I found this one bit of AI behavior odd.
    NavigationProblem.jpg
    The NavMeshAgent (Red) is taking the yellow path to go from one target (White +) to the other. It seems to me that the purple path is doable.
    The value for radius on both the NavMeshAgent and the NavMesh baking is the default 0.5 so I'm thinking the problem is on one of the other settings. It seems like the generated navmesh might also be the culprit since it looks like it has that N-Gon in it.
    Any explanation or advice would be greatly appreciated. Thank you.