Linking/merging multiple grid graphs

First: great plugin, very easy to get working.

I’m building a 2D tile-based simulation game. The prototype has 3 main types of tiles: ground, building and door. I want to limit the movement of units so that they enter and leave buildings through a door.

My solution was to have two grid graphs: one set to a mask of Ground+Door and one set to Building+Door. This seems to work swimmingly but now it seems the algorithm doesn’t transition well between the different areas (if fact, it doesn’t even give me a path at all unless I enable ‘Full get nearest node search’, and then it only works if I first move the unit to the door tile and even then not every time. I’m not using any custom code, just a slightly modified version of the code from the ‘getting started’ tutorial.

Am I approaching this wrong?

edit: I’ve realized that adding a new type of tile (Wall) is probably the easiest thing of all, and completely removes any need for a second grid graph :slight_smile: