Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Are NavMeshSurfaces for interior volumes possible?

Discussion in 'Navigation' started by Inxentas, Jan 23, 2020.

  1. Inxentas

    Inxentas

    Joined:
    Jan 15, 2020
    Posts:
    277
    I've managed to make an indoor level in Blender by simply flipping the normals of the model, exporting it to FBX and applying a Mesh Collider to the whole. I like this approach as it allow me to create big indoor levels for an FPS game I'm trying my hands on. The only issue is that the NavMesh components pretty much treat this thing as being an obstacle. I'm pretty much a newbie when it comes to Unity, but there must be a way to make a NavMeshSurface obey the rules in this situation, right? My goal is to make the NavMeshSurface understand that the Mesh Collider I am using must be approached as a volume, that it's inner surfaces are walkable.

    My alternative is to have the NavMeshComponents ignore the whole thing and just make a model of the floor sections and disable the Mesh Renderer on that model.