i need to check if a specific point is reachable, but need the condition for it to fail to be whether the point simply lies on the graph. I'm using a navmesh graph. I tried using isPathPossible, but GetNearest() doesn't seem suitable as it returns a valid 'nearest' point on the graph, lowering the distance in the main settings is not an option as the characters center is a certain height above the ground. I saw the AstarPath.active.astarData.recastGraph.PointOnNavmesh(), but i definitely plan on having more than one graph of the same type (especially navmesh ones). So i guess the only way is to loop through AstarPath.active.graphs and cast every graph to RecastGraph and if not null use the PointOnNavmesh, or is there an easier way?
Edit: i think it's something like this what i need: http://forum.arongranberg.com/t/is-there-a-getnearest-that-returns-null-if-the-point-is-not-on-a-grid/326
Edit2: i just realized that Navmeshgraph and recastgraph are different types, so what can i do to achieve what i want?
Edit3: I can't see a way to find a path between two nodes, only between positions, but that could help as i could try distance-checking the nodes i get from Getnearest.
The core of my problem is that i have npcs that should not go to a target if it is outside the navmesh