Pathfind to unwalkable tiles

Hello,

I have a use-case where I would like to find the path to an unwalkable tile, through other unwalkable tiles, i.e I need the seeker to ignore walkability and just pathfind a direct line to the end point. Is this possible? And how I can go about this?

Cheers,
Elliott

Hi

If you just want a completely straight path then you could use a fake path with just two points that you specify manually.

See https://arongranberg.com/astar/docs/abpath.html#FakePath

That’s perfect thanks!

On reflection I ended up changing the unwalkable nodes to a tag which the agents can’t traverse, and pathfinding that, as I think this will be better for me in the long run anyway.

1 Like