Second graph on a moving object?

I’m working on a top-down 2d project, and have created a scene with a grid graph that is working correctly for my pawns to navigate around the world.

I want to have a game object (like a train car) that is moving through the scene, with pawns that can ride on it and navigate it using A* pathfinding.

Is there any way for me to accomplish this with the A* Pathfinding Project? I’ve been wrestling with this for a few days now, but I’m fairly new to Unity and am hoping there’s just something I haven’t realized yet.

Thanks in advance for your advice!


This is a very tricky subject. There is some limited support for this (see the ‘Moving’ example scene available in the pro version). However it mostly boils down to having a static graph somewhere else in the world and tricking the characters to think they are navigating on that static graph instead of on a moving surface.