About Graph Detect Distance

Hi Everyone,

Given a startPoint, how do I know whether this startPoint would be accepted for path calculation? For example, given a pointGraph, and a pointNode for distance compare. If the distance between the starPoint and this pointNode is less than 100m, a path would be calculated, otherwise no path would be found.

So, there should be a distance value to check whether a startPoint would be available for finding a path, what is this distance value? How do I change it?

Best Regards!

Maybe it is maxNearestNodeDistance?

Sorry for the late reply.
Yes, the A* Inspector → Settings → Max Nearest Node Distance determines the maximum distance the GetNearest method will search for close points. You can increase it if you want.

Thank you so much!! :smiley:

1 Like