Search Unity

  1. The 2022.1 beta is now available for testing. To find out what's new, have a look at our 2022.1 beta blog post.
    Dismiss Notice

Help Wanted NavMeshAgent movement around corners

Discussion in 'Navigation' started by patrickk2, Nov 23, 2021.

  1. patrickk2

    patrickk2

    Joined:
    Dec 8, 2019
    Posts:
    63
    Hello everybody!

    When I am moving my character via the NavMeshAgent component (the NavMesh itself is created via the NavMeshComponents), the character does move to the right position, but when moving around corners, it makes a noticably bigger arc than necessary.

    This is how the character moves around the corner:
    2-middle.png 3-middle.png 4-middle.png 5-end.png 6-end.png

    I understand, why it keeps the distance around the corner itself, but even after it passes it, the character continues in an arc as if it has too much momentum. (I will post a screenshot of the NavMesh in the next post, since I can only attach five images in one post.)

    I tried different acceleration settings on the NavMeshAgent, but I cannot get it to move around the corner more closely.

    Does anyone have an idea what could cause this, and what settings I can tune to modify the movement?

    Any thoughts and hints would be greatly appreciated!

    Thanks in advance and best regards,
    Patrick
     
  2. patrickk2

    patrickk2

    Joined:
    Dec 8, 2019
    Posts:
    63
    Hello again!

    As mentioned above: here is a screenshot of the NavMesh around the obstacle:

    navmesh.png

    Thanks again, and best regards,
    Patrick
     
unityunity