Trying to path under a bridge

  • A* version: 4.2.17 (2021-11-06)
  • Unity version: 202.3.7f1

So I’ve got a scene where there is a bridge that runs over a valley. Players and enemies can both cross over and under the bridge. However, I am struggling to get the pathfinder to connect the paths that go under the bridge. I have paths over the top of the bridge, but not through the walkable area under the bridge.

I am using a grid graph because my scene and my gameplay is square-based. I am aware that I can replace the grid graph with a node-based graph; I had to do that for another stage. But that is a very lengthy process because I have to cover my entire map with nodes.

Is there another way I can connect the graph under the bridge? I only need two squares, but otherwise I have a simple exploit in this map where the player can fool enemies to run completely around the map by just walking under the bridge.

Hi

I’d recommend checking out the Layered Grid Graph, instead of the normal grid graph.