Navigation
API > API/Runtime > API/Runtime/Navmesh
Options for dtNavMeshQuery::findStraightPath.
| Name | dtStraightPathOptions |
| Type | enum |
| Header File | /Engine/Source/Runtime/Navmesh/Public/Detour/DetourNavMesh.h |
| Include Path | #include "Detour/DetourNavMesh.h" |
Syntax
enum dtStraightPathOptions
{
DT_STRAIGHTPATH_AREA_CROSSINGS = 0x01,
DT_STRAIGHTPATH_ALL_CROSSINGS = 0x02,
}
Values
| Name | Remarks |
|---|---|
| DT_STRAIGHTPATH_AREA_CROSSINGS | Add a vertex at every polygon edge crossing where area changes. |
| DT_STRAIGHTPATH_ALL_CROSSINGS | Add a vertex at every polygon edge crossing. |