Function GridGraph.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.

This method may be able to use a tighter (non-axis aligned) bounding box than using the one returned by bounds.

For a graph that uses 2D physics, or if height testing is disabled, then the graph is treated as infinitely tall. Otherwise, the height of the graph is determined by GraphCollision.fromHeight.

Note

For an unscanned graph, this will always return false.