[This is preliminary documentation and is subject to change.]

Checks the corridor path to see if its polygon references remain valid.

Namespace: org.critterai.nav
Assembly: cai-nav (in cai-nav.dll) Version: 0.4.0.0 (0.4.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public bool IsValid(
	int maxLookAhead
)
Public Function IsValid ( _
	maxLookAhead As Integer _
) As Boolean
public:
bool IsValid(
	int maxLookAhead
)

Parameters

maxLookAhead
Int32
The number of polygons from the beginning of the corridor to search.

Return Value

True if the seached portion of the path is still valid.

Remarks

The path can be invalidated if there are structural changes to the underlying navigation mesh, or the state of a polygon within the path changes resulting in it being filtered out. (E.g. An exclusion or inclusion flag changes.)

See Also