Module |
|
Header |
/Engine/Source/Runtime/Navmesh/Public/Detour/DetourNavMeshQuery.h |
Include |
#include "Detour/DetourNavMeshQuery.h" |
class dtNavMeshQuery
Provides the ability to perform pathfinding related queries against a navigation mesh.
For methods that support undersized buffers, if the buffer is too small to hold the entire result set the return status of the method will include the #DT_BUFFER_TOO_SMALL flag.
Constant member functions can be used by multiple clients without side effects. (E.g. No change to the closed list. No impact on an in-progress sliced path query. Etc.)
Walls and portals: A wall is a polygon segment that is considered impassable. A portal is a passable segment between polygons. A portal may be treated as a wall based on the dtQueryFilter used for a query.
Name | Description | |
---|---|---|
|
dtNavMeshQuery() |
Name | Description | |
---|---|---|
|
~dtNavMeshQuery() |
Name | Description | ||
---|---|---|---|
|
appendPortals ( |
Appends intermediate portal points to a straight path. |
|
|
appendVertex ( |
Appends vertex to a straight path. |
|
|
closestPointOnPoly ( |
Finds the closest point on the specified polygon. |
|
|
closestPointOnPolyBoundary ( |
Returns a point on the boundary closest to the source point if the source point is outside the polygon's xz-bounds. |
|
|
finalizeSlicedFindPath ( |
Finalizes and returns the results of a sliced path query. |
|
|
finalizeSlicedFindPathPartial |
Finalizes and returns the results of an incomplete sliced path query, returning the path to the furthest polygon on the existing path that was visited during the search. |
|
|
findDistanceToWall ( |
Finds the distance from the specified position to the nearest polygon wall. |
|
|
findLocalNeighbourhood ( |
Finds the non-overlapping navigation polygons in the local neighbourhood around the center position. |
|
|
findNearestContainingPoly ( |
Finds the nearest polygon in height containing the specified center point. |
|
|
findNearestPoly ( |
Finds the polygon nearest to the specified center point. |
|
|
findNearestPoly2D ( |
Finds the polygon 2D-nearest to the specified center point. |
|
|
findPath ( |
Finds a path from the start polygon to the end polygon. |
|
|
findPolysAroundCircle ( |
Finds the polygons along the navigation graph that touch the specified circle. |
|
|
findPolysAroundShape ( |
Finds the polygons along the naviation graph that touch the specified convex polygon. |
|
|
findPolysInPathDistance ( |
Finds the polygons along the navigation graph that are no more than given path length away from centerPos. |
|
|
findRandomPoint ( |
Returns random location on navmesh. |
|
|
findRandomPointAroundCircle ( |
Returns random location on navmesh within the reach of specified location. |
|
|
findStraightPath ( |
Finds the straight path from the start to the end position within the polygon corridor. |
|
|
findWallsInNeighbourhood ( |
[UE4] Finds the wall segments in local neighbourhood |
|
|
const dtNavM... |
getAttachedNavMesh() |
Gets the navigation mesh the query object is using. |
|
getCurrentBestResult ( |
Gets best node ref and cost from sliced pathfinding data. |
|
|
getEdgeMidPoint ( |
||
|
getEdgeMidPoint |
Returns edge mid point between two polygons. |
|
|
dtNodePool &... |
getNodePool() |
Gets the node pool. |
|
getPolyHeight ( |
Gets the height of the polygon at the provided position using the height detail. |
|
|
getPolyWallSegments ( |
Returns the segments for the specified polygon, optionally including portals. |
|
|
getPortalPoints |
Exposing function to be able to generate navigation corridors as sequence of point pairs |
|
|
getPortalPoints ( |
||
|
int |
getQueryNodes() |
|
|
init ( |
Initializes the query object. |
|
|
initSlicedFindPath ( |
Initializes a sliced path query. |
|
|
isInClosedList ( |
Returns true if the polygon reference is in the closed list. |
|
|
isPointInsidePoly |
Checks if specified pos is inside given polygon specified by ref |
|
|
isValidPolyRef ( |
Returns true if the polygon reference is valid and passes the filter restrictions. |
|
|
moveAlongSurface ( |
Moves from the start to the end position constrained to the navigation mesh. |
|
|
passLinkFilter ( |
||
|
passLinkFilterByRef ( |
||
|
projectedPointOnPoly ( |
Finds the point's projection on the specified polygon. |
|
|
queryPolygons ( |
Finds polygons that overlap the search box. |
|
|
raycast ( |
Casts a 'walkability' ray along the surface of the navigation mesh from the start position toward the end position. |
|
|
updateLinkFilter ( |
UE4: updates special link filter for this query. |
|
|
updateSlicedFindPath ( |
Updates an in-progress sliced path query. |
|
|
wasClusterLinkSearched |
Returns true if the cluster link was used in previous search. |