UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
dtQueryResult Struct Reference

#include <DetourNavMeshQuery.h>

Public Member Functions

void reserve (int n)
 
int size () const
 
dtPolyRef getRef (int idx) const
 
dtReal getCost (int idx) const
 
const dtRealgetPos (int idx) const
 
unsigned int getFlag (int idx) const
 
NAVMESH_API void getPos (int idx, dtReal *pos)
 
NAVMESH_API void copyRefs (dtPolyRef *refs, int nmax)
 
NAVMESH_API void copyCosts (dtReal *costs, int nmax)
 
NAVMESH_API void copyPos (dtReal *pos, int nmax)
 
NAVMESH_API void copyFlags (unsigned char *flags, int nmax)
 
NAVMESH_API void copyFlags (unsigned int *flags, int nmax)
 

Protected Member Functions

int addItem (dtPolyRef ref, dtReal cost, const dtReal *pos, unsigned int flag)
 
void setRef (int idx, dtPolyRef ref)
 
void setCost (int idx, dtReal cost)
 
void setFlag (int idx, unsigned int flag)
 
NAVMESH_API void setPos (int idx, const dtReal *pos)
 

Protected Attributes

dtChunkArray< dtQueryResultPackdata
 

Friends

class dtNavMeshQuery
 

Member Function Documentation

◆ addItem()

int dtQueryResult::addItem ( dtPolyRef  ref,
dtReal  cost,
const dtReal pos,
unsigned int  flag 
)
inlineprotected

◆ copyCosts()

void dtQueryResult::copyCosts ( dtReal costs,
int  nmax 
)

◆ copyFlags() [1/2]

void dtQueryResult::copyFlags ( unsigned char flags,
int  nmax 
)

◆ copyFlags() [2/2]

void dtQueryResult::copyFlags ( unsigned int *  flags,
int  nmax 
)

◆ copyPos()

void dtQueryResult::copyPos ( dtReal pos,
int  nmax 
)

◆ copyRefs()

void dtQueryResult::copyRefs ( dtPolyRef refs,
int  nmax 
)

◆ getCost()

dtReal dtQueryResult::getCost ( int  idx) const
inline

◆ getFlag()

unsigned int dtQueryResult::getFlag ( int  idx) const
inline

◆ getPos() [1/2]

const dtReal * dtQueryResult::getPos ( int  idx) const
inline

◆ getPos() [2/2]

void dtQueryResult::getPos ( int  idx,
dtReal pos 
)

◆ getRef()

dtPolyRef dtQueryResult::getRef ( int  idx) const
inline

◆ reserve()

void dtQueryResult::reserve ( int  n)
inline

◆ setCost()

void dtQueryResult::setCost ( int  idx,
dtReal  cost 
)
inlineprotected

◆ setFlag()

void dtQueryResult::setFlag ( int  idx,
unsigned int  flag 
)
inlineprotected

◆ setPos()

void dtQueryResult::setPos ( int  idx,
const dtReal pos 
)
protected

◆ setRef()

void dtQueryResult::setRef ( int  idx,
dtPolyRef  ref 
)
inlineprotected

◆ size()

int dtQueryResult::size ( ) const
inline

Friends And Related Symbol Documentation

◆ dtNavMeshQuery

friend class dtNavMeshQuery
friend

Member Data Documentation

◆ data

dtChunkArray<dtQueryResultPack> dtQueryResult::data
protected

The documentation for this struct was generated from the following files: