Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

How to let NavAgent keep distance with the edge of areas where they cannot move on?

Discussion in 'Navigation' started by DraftAlone, Oct 7, 2020.

  1. DraftAlone

    DraftAlone

    Joined:
    Apr 9, 2019
    Posts:
    1
    situation.png
    Hi Guys, I have a question. I have 2 types of navmesh areas, walkable and water. Some agents can walk though water and the others cannot. But I find that the agents who cannot walk though water will walk on the edge of water, which makes half of agent on the water, and it is pretty ugly.
    Is there any way to solve this problem? Make the navMesh little bigger that area itself? Or Let NavAgent keep distance with the the edge of water?
     
    Last edited: Oct 8, 2020