19 #ifndef DETOURLOCALBOUNDARY_H
20 #define DETOURLOCALBOUNDARY_H
27 static const int MAX_LOCAL_SEGS = 8;
28 static const int MAX_LOCAL_POLYS = 16;
37 Segment m_segs[MAX_LOCAL_SEGS];
43 void addSegment(
const float dist,
const float* s);
51 void update(
dtPolyRef ref,
const float* pos,
const float collisionQueryRange,
56 inline const float*
getCenter()
const {
return m_center; }
58 inline const float*
getSegment(
int i)
const {
return m_segs[i].s; }
Definition: DetourLocalBoundary.h:26
int getSegmentCount() const
Definition: DetourLocalBoundary.h:57
const float * getSegment(int i) const
Definition: DetourLocalBoundary.h:58
void update(dtPolyRef ref, const float *pos, const float collisionQueryRange, dtNavMeshQuery *navquery, const dtQueryFilter *filter)
Definition: DetourLocalBoundary.cpp:84
void reset()
Definition: DetourLocalBoundary.cpp:38
~dtLocalBoundary()
Definition: DetourLocalBoundary.cpp:34
const float * getCenter() const
Definition: DetourLocalBoundary.h:56
dtLocalBoundary()
Definition: DetourLocalBoundary.cpp:27
bool isValid(dtNavMeshQuery *navquery, const dtQueryFilter *filter)
Definition: DetourLocalBoundary.cpp:123
Provides the ability to perform pathfinding related queries against a navigation mesh.
Definition: DetourNavMeshQuery.h:166
Defines polygon filtering and traversal costs for navigation mesh query operations.
Definition: DetourNavMeshQuery.h:36
unsigned int dtPolyRef
A handle to a polygon within a navigation mesh tile.
Definition: DetourNavMesh.h:48