19 #ifndef NAVMESHTESTERTOOL_H
20 #define NAVMESHTESTERTOOL_H
39 TOOLMODE_PATHFIND_FOLLOW,
40 TOOLMODE_PATHFIND_STRAIGHT,
41 TOOLMODE_PATHFIND_SLICED,
43 TOOLMODE_DISTANCE_TO_WALL,
44 TOOLMODE_FIND_POLYS_IN_CIRCLE,
45 TOOLMODE_FIND_POLYS_IN_SHAPE,
46 TOOLMODE_FIND_LOCAL_NEIGHBOURHOOD
51 int m_straightPathOptions;
53 static const int MAX_POLYS = 256;
54 static const int MAX_SMOOTH = 2048;
61 float m_straightPath[MAX_POLYS*3];
62 unsigned char m_straightPathFlags[MAX_POLYS];
65 float m_polyPickExt[3];
66 float m_smoothPath[MAX_SMOOTH*3];
68 float m_queryPoly[4*3];
70 static const int MAX_RAND_POINTS = 64;
71 float m_randPoints[MAX_RAND_POINTS*3];
73 bool m_randPointsInCircle;
80 float m_distanceToWall;
81 float m_neighbourhoodRadius;
88 int m_pathIterPolyCount;
89 float m_prevIterPos[3], m_iterPos[3], m_steerPos[3], m_targetPos[3];
91 static const int MAX_STEER_POINTS = 10;
92 float m_steerPoints[MAX_STEER_POINTS*3];
93 int m_steerPointCount;
100 virtual void reset();
102 virtual void handleClick(
const float* s,
const float* p,
bool shift);
110 void drawAgent(
const float* pos,
float r,
float h,
float c,
const unsigned int col);
unsigned int dtStatus
Definition: DetourStatus.h:22
@ TOOL_NAVMESH_TESTER
Definition: Sample.h:33
Provides the ability to perform pathfinding related queries against a navigation mesh.
Definition: DetourNavMeshQuery.h:166
A navigation mesh based on tiles of convex polygons.
Definition: DetourNavMesh.h:339
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