dtNavMeshQuery::findRandomPointInCluster

Returns random location on navmesh within specified cluster.

Windows
MacOS
Linux

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

Syntax

dtStatus findRandomPointInCluster
(
    dtClusterRef clusterRef,
    float(*)() frand,
    dtPolyRef * randomRef,
    float * randomPt
) const

Remarks

Returns random location on navmesh within specified cluster.

Returns

The status flags for the query.

Parameters

Parameter

Description

frand

Function returning a random number [0..1).

randomRef

The reference id of the random location.

randomPt

The random location.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss