Greetings, everyone. I hope I’ve chosen the correct topic for this issue I’m having.
I’d like to set certain parts of rooms in the game I’m working on as Non-Walkable. The friend of mine who made the map have placed the props within the rooms within a child object of the Grid called Props and added a Tile Map Collider 2D and Composite Collider 2D to it.
I’m trying to exclude the area these Props take from the NavMesh Surface that is being baked. I have set the layer of the object containing the obstacles into a layer named Obstacles and added a Navigation Surface modifier set to Not-Walkable. However, when I bake the NavMesh, I’m still seeing these areas are included.
I don’t have a lot of experience with Tile Map Colliders and Composite Colliders (as far as I know, Composite Colliders chain Tile Map Colliders together to form one collider in order to improve performance) but I’m assuming the reason why it does not work is because of this? There is also a layer for Walls and the object on it also has a Tile Map Collider 2D and a Composite Collider 2D. It is able to affect the Navigation Mesh just fine.
I’d be grateful if anyone has pointers they can give so that I can solve this problem. Thanks in advance, everyone. Further details can be provided if needed.