Search Unity

Nav Mesh incorrect margin

Discussion in 'Navigation' started by MadWatch, Nov 5, 2020.

  1. MadWatch

    MadWatch

    Joined:
    May 26, 2016
    Posts:
    112
    Hello everyone

    I created a square plane mesh and I used it as walkable area to create a navmesh. I configured the agent radius to 0.5, so I expected the margin between the border of my mesh and the navmesh to be equal to 0.5. But this isn't the case. The margin is bigger and I don't understand why.

    This is the agent configuration
    Screenshot_20201105_211824.png

    And this is the navmesh (in blue) with the incorrect margin
    Screenshot_20201105_211852.png

    I also tried with a regular plane mesh just to test and the result is even weirder. This time the vertical and horizontal margin aren't the same.
    Screenshot_20201105_212044.png
    What is creating this margin? How can I modify it?
    Thanks.