would such a function work in a turn based game? to enable the pathfinding on a flat 3d grid?
like this



Why does everyone like dolphins? Never trust a species which smiles all the time!