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 projectedPointOnPoly
&40;
dtPolyRef ref,
const dtReal &42; pos,
dtReal &42; projected
&41; const
Remarks
Finds the point's projection on the specified polygon.
Uses the detail polygons to find the surface height. (Most accurate.)
`pos_ does not have to be within the bounds of the polygon or navigation mesh. The status flags for the query.
Parameters
| Name | Description |
|---|---|
| ref | The reference id of the polygon. |
| pos | The position to check. [(x, y, z)] |
| closest | The projected point on the polygon. [(x, y, z)] |