Just to clear up some confusion I’m having:
-
GridGraphs store all the nodes in a variable called “nodes” declared like this:
public GridNode[] nodes;
-
The size of this array is always width*length. Even if the original scan finds unwalkable nodes, the nodes are still in that array
-
The order of the array is correct and sequential. Index 0 or nodes[0] is the bottom left node in the grid, nodes[width] is the bottom right, nodes[(height-1) * width] is the top left, and node[width * height - 1] is always the top-right node at the grid (assuming you make a normal, default setup grid).
Is all that correct?