Function RecastGraph.IsInsideBounds

IsInsideBounds (Vector3 point)

True if the point is inside the bounding box of this graph.

Public
bool IsInsideBounds (

Vector3

point

)

True if the point is inside the bounding box of this graph.

Note

This method uses a tighter non-axis-aligned bounding box than you can get from the bounds property.

What is considered inside the bounds is only updated when the graph is scanned. For an unscanned graph, this will always return false.

In 2D mode, the point is considered inside if it is contained along the graph's X and Z axes (Y is ignored). Note that the graph's X and Z axes are typically aligned with the world's X and Y axes when using 2D mode.