dtPathCorridor::isValid

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

Windows
MacOS
Linux

References

Module

Navmesh

Header

/Engine/Source/Runtime/Navmesh/Public/DetourCrowd/DetourPathCorridor.h

Include

#include "DetourCrowd/DetourPathCorridor.h"

Source

/Engine/Source/Runtime/Navmesh/Private/DetourCrowd/DetourPathCorridor.cpp

Syntax

bool isValid
(
    const int maxLookAhead,
    dtNavMeshQuery * navquery,
    const dtQueryFilter * filter
)

Remarks

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

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.)

Parameters

Parameter

Description

maxLookAhead

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

navquery

The query object used to build the corridor.

filter

The filter to apply to the operation.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss