Function RaycastModifier.ValidateLine
ValidateLine
(GraphNode n1, GraphNode n2, Vector3 v1, Vector3 v2, System.Func<GraphNode, bool> filter, NNConstraint nnConstraint)
Check if a straight path between v1 and v2 is valid.
Protected
bool ValidateLine (
n1 | ||
n2 | ||
v1 | ||
v2 | ||
System.Func<GraphNode, bool> | filter | |
nnConstraint |
Check if a straight path between v1 and v2 is valid.
If both n1 and n2 are supplied it is assumed that the line goes from the center of n1 to the center of n2 and a more optimized graph linecast may be done.