Navigation
API > API/Runtime > API/Runtime/Navmesh
Description
Determines if the two convex polygons overlap on the xz-plane.
All vertices are projected onto the xz-plane, so the y-values are ignored.
| Name | dtOverlapPolyPoly2D |
| Type | function |
| Header File | /Engine/Source/Runtime/Navmesh/Public/Detour/DetourCommon.h |
| Include Path | #include "Detour/DetourCommon.h" |
| Source | /Engine/Source/Runtime/Navmesh/Private/Detour/DetourCommon.cpp |
bool dtOverlapPolyPoly2D
(
const dtReal * polya,
const int npolya,
const dtReal * polyb,
const int npolyb
)
True if the two polygons overlap.
Parameters
| Name | Remarks |
|---|---|
| polya | Polygon A vertices. [(x, y, z) * npolya] |
| npolya | The number of vertices in polygon A. |
| polyb | Polygon B vertices. [(x, y, z) * npolyb] |
| npolyb | The number of vertices in polygon B. |