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 findRandomPointInPoly
&40;
dtPolyRef ref,
float(&42;)() frand,
dtReal &42; randomPt
&41; const
Remarks
Returns random location inside the specified polygon. The status flags for the query.
Parameters
| Name | Description |
|---|---|
| ref | The reference id of the polygon. |
| frand | Function returning a random number [0..1). |
| randomPt | The random location. [(x, y, z)] |