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* seg);
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; }
61 #endif // DETOURLOCALBOUNDARY_H int getSegmentCount() const
unsigned int dtPolyRef
A handle to a polygon within a navigation mesh tile.
bool isValid(dtNavMeshQuery *navquery, const dtQueryFilter *filter)
const float * getCenter() const
const float * getSegment(int i) const
Defines polygon filtering and traversal costs for navigation mesh query operations.
Provides the ability to perform pathfinding related queries against a navigation mesh.
void update(dtPolyRef ref, const float *pos, const float collisionQueryRange, dtNavMeshQuery *navquery, const dtQueryFilter *filter)