Finding world position of graphnode

Hi there.
In probably missing something obvious here, but is there a way to find the world position of a graph node (in this case, the items returned from a BFS)?

X/Z coords are OK since I can find Y easy enough.

Trying to draw the BFS result as a grid in game.

1 Like

Hi

The positions on graph nodes are stored using Int3s. They can be casted to Vector3s easily.

Vector3 pos = (Vector3)node.position;
1 Like

I knew there was something obvious lol thanks!

1 Like

Just as an addendum, Path also contains a vectorPath field (which may contain already processed positions). Good convenience shortcut for many applications.

1 Like