I am stuck on obstacles

Is there a way to check if destination is accessible?
I am using 3.7.4 pro with Unity 4.7

I need to have “exact end point” set to original. Is there a way to check if path returned by Seeker.StartPath is walkable to it’s destination?

Please check attached screen shot.


You can use

var start = AstarPath.instance.GetNearest(startPoint, NNConstraint.Default).node;
var end = AstarPath.instance.GetNearest(endPoint, NNConstraint.Default).node;
bool validPath = PathUtilities.IsPathPossible(start, end);

If you simply want the character to go to the closest point it can reach, then set ‘Exact End Point’ to ‘Closest On Node’ instead.

Thanks! That is what I was missing.