Navigation
API > API/Runtime > API/Runtime/Navmesh > API/Runtime/Navmesh/dtNavMeshQuery
Description
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.
| Name | getPolyHeight |
| Type | function |
| Header File | /Engine/Source/Runtime/Navmesh/Public/Detour/DetourNavMeshQuery.h |
| Include Path | #include "Detour/DetourNavMeshQuery.h" |
| Source | /Engine/Source/Runtime/Navmesh/Private/Detour/DetourNavMeshQuery.cpp |
dtStatus getPolyHeight
(
dtPolyRef ref,
const dtReal * pos,
dtReal * height
) const
The status flags for the query.
Parameters
| Name | Remarks |
|---|---|
| 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. |