dtNavMeshQuery::findPolysInPathDistance

Finds the polygons along the navigation graph that are no more than given path length away from centerPos.

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 findPolysInPathDistance
(
    dtPolyRef startRef,
    const float * centerPos,
    const float pathDistance,
    const dtQueryFilter * filter,
    dtPolyRef * resultRef,
    int * resultCount,
    const int maxResult
) const

Remarks

Finds the polygons along the navigation graph that are no more than given path length away from centerPos.

Returns

The status flags for the query.

Parameters

Parameter

Description

startRef

The reference id of the polygon where the search starts.

centerPos

The center of the search circle. [(x, y, z)]

pathDistance

The path distance limit of the search

filter

The polygon filter to apply to the query.

resultRef

The reference ids of the polygons touched by the circle. [opt]

resultCount

The number of polygons found. [opt]

maxResult

The maximum number of polygons the result arrays can hold.

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