Search Unity

  1. Calling all beginners! Join the FPS Beginners Mods Challenge until December 13.
    Dismiss Notice
  2. It's Cyber Week at the Asset Store!
    Dismiss Notice

Issues cutting nav mesh while baking

Discussion in 'Navigation' started by LesBloom, Oct 11, 2018.

  1. LesBloom

    LesBloom

    Joined:
    Feb 2, 2017
    Posts:
    81
    Hi all,

    The blue area to the left is the ground with the nav mesh. The big square to the right is trying to cut away a section of the nav mesh.
    upload_2018-10-10_18-28-39.png

    The problem is that it leaves this strange triangle, walkable section. There is nothing else in the scene. This is a bare-bones repro.
    upload_2018-10-10_18-29-50.png

    Any information would be really appreciated.
    Thank you
     
  2. Yandalf

    Yandalf

    Joined:
    Feb 11, 2014
    Posts:
    382
    Hmmm, that's weird. How are you doing this cutting away? Are you using a NavMeshObstacle or something else?
     
  3. LesBloom

    LesBloom

    Joined:
    Feb 2, 2017
    Posts:
    81
    I started off just using a BoxCollider, but I did try adding a NavMeshObstacle at one point. Both had the same result.
     
  4. Yandalf

    Yandalf

    Joined:
    Feb 11, 2014
    Posts:
    382
    It's really strange. All I can wonder is if perhaps your box doesn't "properly" intersect with the navmesh, that the margin is so tiny you're having float precision issues.
    If your box is only "standing on top of" your geometry, please push it down a bit to make sure the box "cuts through" your walkable surface.
     
  5. LesBloom

    LesBloom

    Joined:
    Feb 2, 2017
    Posts:
    81
    Hi @Yandalf ,

    I apologize for the delayed reply. You were exactly right. I lowered my colliders a bit and all is well now.

    Thank you for the assistance
    Les
     
  6. Yandalf

    Yandalf

    Joined:
    Feb 11, 2014
    Posts:
    382
    Glad to hear that fixed it :D