Find Closest Visible Point in a PointGraph?

If I tell the seeker to create a path, it will automatically start at the closest PointGraph node, but the problem is if the node is on the other side of a wall. Then my AI just keeps running at the wall.

Raycasting to every point would be slow, but finding the closest then raycasting, then taking 2nd closest & raycasting, etc. would be what I am looking for.

Seems like this would be a common problem, so I might just be overlooking something. Appreciate any help.


That is not built-in. However it can relatively easily be fixed by extending an NNConstraint.
Problem is that this would have to check in the worst case, all nodes. This is why point graphs are used less and less for navigation, it is hard to find which node is closest.