NavMesh Obstacles

Hello,

I’m trying to build a completely dynamic level. I have the NavMesh Components installed, and I can bake the NavMeshSurface at runtime. However, I do have some simple walls that are generated at runtime, also on the NavMeshSurface, but I cannot figure out how to carve them out, so that the NavMeshAgents know to avoid them. Thanks for any help/advice!

Are the walls added before or after you bake the navmesh? If it’s done after baking, you need to rebake the NavMesh since they don’t dynamically update, unless you mark your walls as NavMesh Obstacles. If you added them before baking and they don’t influence the bake, make sure they are properly set up to have collission and that your baking process collects the data from the right layers etc.