So… I keep getting stuck on corners of my stairs, especially on the bottom of the stairs (see screenshots). I need the layeredgridgraph, because I am making a builder game with several floors stacked above each other. There is townsfolk that can travel to the first floor and back to ground level by stairs. I tried a lot of combinations of settings, but after several hours of experimenting, I am tired. Anyone got suggestions?
Okay, doing pick new destination set at 1 and contain to grid off helps a lot. I do have some weird behavior left, namely that the graph does not connect in all doorways. I made the collider on the doorway small, so I know things will definitely fit through the doorway. My floor is made of instantiated squares. In the one doorway in the screenshot on the right, everything is fine. The graph in the doorway on the left is disconnected. Please help.
You may want to look into the Recast Graph, which can also handle multiple floors. If you’re still having the doorway issue with Recast Graph you may want to send us the project to play with.
Lol, I see the problem. Your grid considers deactivated colliders when it gets (re)calculated. I had an enabled collider component on a disabled child gameobject on my door that was being considered. Same goes for disabled collider components on the active parent/child gameobjects. You should put this in your documentation, if you have not already.
With the layered grid graph? Are you sure?
That info comes straight from unitys physics engine, so it should be taking the enabled state into account.