Function PointGraph.IsValidConnection
Returns if the connection between a and b is valid.
Public
bool IsValidConnection (
a | ||
b | ||
out float | dist |
Returns if the connection between a and b is valid.
Checks for obstructions using raycasts (if enabled) and checks for height differences.
As a bonus, it outputs the distance between the nodes too if the connection is valid.
Note
This is not the same as checking if node a is connected to node b. That should be done using a.ContainsOutgoingConnection(b)