Path finding along Links

Hi.

I need to add a solution to allow units to path find to the player when he moves across parts that are only connected via NodeLink. The scenario is a special escalator that the player can traverse, but is not part of the navmesh. The escalator is connected on both ends via a NodeLink.
While the AI is following the player, I need each path query to return the end point of the link, so that it appears to be following him even though there is no nav mesh to which I can make exact queries.

The reason is that the escalator can only be traversed in one direction, hence the link is necessary to create a one-way connection.

How can this be achieved?

I managed to find a solution, using some tricks.

But as far as pathfinding goes, i just had the escalator be part of the mesh, and cut a small part out using NavMeshCut, then linked over that with a one way link. this solves all my issues, and NPCs can’t walk down it

1 Like