Check if a path exist (and isPathPossible doesn't works for me)

Hi, 've a graph with erosion and tags. I use to have different size enemy. I’ve the Big enemy with the traversable tag to false, and usually works. The problem is that if i haven’t a valid path (like in the image), the
if (PathUtilities.IsPathPossible(AstarPath.active.GetNearest(Target(), NNConstraint.Walkable).node, AstarPath.active.GetNearest(transform.position, NNConstraint.None ).node))
returns always true. Seems that isPathPossible don’t use the tags flag. Any idea how check if a path exist?

try this one
https://arongranberg.com/astar/docs/pathutilities.html#IsPathPossible3

1 Like

Tnks and Sorry for the stupid question :frowning: