Navigation
API > API/Runtime > API/Runtime/Navmesh > API/Runtime/Navmesh/dtPathCorridor
Description
Resets the path corridor to the specified position.
Essentially, the corridor is set of one polygon in size with the target equal to the position.
| Name | reset |
| Type | function |
| Header File | /Engine/Source/Runtime/Navmesh/Public/DetourCrowd/DetourPathCorridor.h |
| Include Path | #include "DetourCrowd/DetourPathCorridor.h" |
| Source | /Engine/Source/Runtime/Navmesh/Private/DetourCrowd/DetourPathCorridor.cpp |
void reset
(
dtPolyRef ref,
const dtReal * pos
)
Parameters
| Name | Remarks |
|---|---|
| ref | The polygon reference containing the position. |
| pos | The new position in the corridor. [(x, y, z)] |