Search Unity

  1. Check out the Unite LA keynote for updates on the Visual Effect Editor, the FPS Sample, ECS, Unity for Film and more! Watch it now!
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  4. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  6. Want to see the most recent patch releases? Take a peek at the patch release page.
    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:
    19
    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:
    78
    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:
    19
    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:
    78
    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:
    19
    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:
    78
    Glad to hear that fixed it :D