Search Unity

How to connect NavMesh for Chunks?

Discussion in 'Navigation' started by blutsgewalt, Sep 25, 2019.

  1. blutsgewalt

    blutsgewalt

    Joined:
    Nov 3, 2012
    Posts:
    20
    What is the state of the art solution in creating a NavMesh for multiple procedural generated Mesh chunks?

    My current solution is

    • Generate the Mesh Chunk

    • Add NavMeshSurface Component

    • Build NavMeshSurface of Chunk

    • Add NavMeshLinks to neighbouring chunks

      For that i've added the official NavMeshComponents from github to my project.
    It works, but it just feels wrong to creat hundreds of NavMeshLinks just to connect two surfaces with each other.
     
  2. Yandalf

    Yandalf

    Joined:
    Feb 11, 2014
    Posts:
    491
    Got some bad news for you, people have been breaking their heads over this exact problem for a while now.
    Short answer is Unity's NavMesh system simply doesn't support it. There's no way to "stitch" Navmesh chunks together.
    Here is one of the busier threads about the same issue. See if you get anything out of it: https://forum.unity.com/threads/connecting-chunks-of-navmesh.527039/
     
    dejwifati likes this.
  3. blutsgewalt

    blutsgewalt

    Joined:
    Nov 3, 2012
    Posts:
    20
    Yhea i've seen this thread already and it was quite a let down. Thank you anyway. Looks like i have to come up with something different.