[SOLVED][Feature] Isometric grid with square shape

Hi,

In my isometric game, for avoid diamond shape map, I manage my map to only be a rectangle shape. But grid in A* allow only diamond shape for isometric grid. And also this problem force me to have grid with more than 1024*1024 node :frowning:

@aron_granberg any suggestion or plan for that ?

The blue square is borders of my map

Thks

Hi

Unfortunately due to how the graph is represented, this is not possible at the moment.
You will have to live with those extra unnecessary nodes.

Ok so I look for write a graph which match with my logic so.
Is this complicated to reimplement layered graph compared to gridgraph ?

Hi

You can just make the nodes outside your world be unwalkable. You will have some unnecessary nodes, but it will not impact performance that much.

I’m not quite sure what you mean by that?

You can just make the nodes outside your world be unwalkable. You will have some unnecessary nodes, but it will not impact performance that much.

Ok,I’ll follow your advice.

For conclude last question : I don’t use physic for now so by default node will not be walkable, isn’t it ?

Thanks :slight_smile:

The default then should be a walkable node.
The easiest solution I think will be to put large 2D box colliders on the regions that you want to make unwalkable and then tweak the Grid Graph -> Collision Testing settings accordingly.