Search Unity

NavMesh is badly carved by the obstacles

Discussion in 'Navigation' started by PROE_, Nov 23, 2019.

  1. PROE_

    PROE_

    Joined:
    Feb 20, 2016
    Posts:
    18
    Hi, I'm using obstacles with stationary carving for my game but sometimes when I add obstacle weird thing like this happens and agents can't go behind these lines... Is there any solution to this? Haven't tried changing voxel resolution yet (gonna do it tommorow cuz it's 1:30 AM here) but I'm not sure if it will help.

    Thanks in advance!

    BTW - I'm using the latest Unity 2018.4.12

    UnityCarvingProblem.png
     
  2. PROE_

    PROE_

    Joined:
    Feb 20, 2016
    Posts:
    18
    So I found the solution - I used a mesh to bake NavMesh data and it was working bad as seen on the screenshot in the first post, but rebaking it using colliders repaired carving so now it's working properly :)