Hi i’m trying to make a node-to-node movement (e.g press left and the player moves to the next node to the left), and I’ve found that GetConnectionInternal returns a bool if there is an available node in that particular direction, but I cant find the documentation that says which number represents each direction (eg 1= up; 2=up left, and so on)
Since it is an internal method (therefore “Internal” in the name). It is not that documented. But you can find the relevant code in GridGenerator.cs -> SetUpOffsetsAndCosts.
Here are the directions:
[0] = -Y [1] = +X [2] = +Y [3] = -X [4] = -Y+X [5] = +Y+X [6] = +Y-X [7] = -Y-X
I have improved the documentation in my developer version and it will be included in the next release.
Thanks mate