Navigation
Unreal Engine C++ API Reference > Runtime > Navmesh > DetourCrowd > dtPathCorridor
Warnings * The size of the path must not exceed the size of corridor's path buffer set during init().
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 |
void setCorridor
&40;
const dtReal &42; target,
const dtPolyRef &42; polys,
const int npath
&41;
Remarks
Loads a new path and target into the corridor.
The current corridor position is expected to be within the first polygon in the path. The target is expected to be in the last polygon.
The size of the path must not exceed the size of corridor's path buffer set during init().
Parameters
Name | Description |
---|---|
target | The target location within the last polygon of the path. [(x, y, z)] |
path | The path corridor. [(polyRef) * npolys] |
npath | The number of polygons in the path. |