Hi again, I finally could do what I wanted. But I have some doubts about how I achieved it and if its the best way:
Here is how I set up the graph dedicated to the street tiles, the street tiles have the layer “Street”
Here is what I call when a street tile is built or removed, the dictionary posToNode keeps the current street nodes:
This is how the map looks:
When I want to check if they are connected I simply do:
This seems to work fine.
With this setup I create a big amount of nodes depending on the map size, I have 2 graphs more for ships navigation and planes and im worried about performance.
I’m wondering if it would not be easier just to create nodes where the streets are, that should be more optimal since on a big map I would create much less nodes, just where the streets are. Is this a bad idea or not possible?
Also I dont understand is why you suggested me to use the HierarchicalGraph, and how should I use it, I didnt see the option in the A* ui to add any Graph of that type. (im using 4.2.15 pro)
Thanks a lot for your help.