Navigation
API > API/Runtime > API/Runtime/Navmesh > API/Runtime/Navmesh/Detour > API/Runtime/Navmesh/Detour/dtNavMeshQuery
References
| Module | Navmesh |
| Header | /Engine/Source/Runtime/Navmesh/Public/Detour/DetourNavMeshQuery.h |
| Include | #include "Detour/DetourNavMeshQuery.h" |
| Source | /Engine/Source/Runtime/Navmesh/Private/Detour/DetourNavMeshQuery.cpp |
dtStatus getPolyHeight
&40;
dtPolyRef ref,
const dtReal &42; pos,
dtReal &42; height
&41; const
Remarks
Gets the height of the polygon at the provided position using the height detail. (Most accurate.)
Will return #DT_FAILURE if the provided position is outside the xz-bounds of the polygon. The status flags for the query.
Parameters
| Name | Description |
|---|---|
| ref | The reference id of the polygon. |
| pos | A position within the xz-bounds of the polygon. [(x, y, z)] |
| height | The height at the surface of the polygon. |