27 static constexpr int MAX_POLYS = 256;
28 static constexpr int MAX_SMOOTH = 2048;
29 static constexpr int MAX_RAND_POINTS = 64;
36 enum class ToolMode : uint8_t
45 FIND_LOCAL_NEIGHBORHOOD
47 ToolMode toolMode = ToolMode::PATHFIND_FOLLOW;
49 int straightPathOptions = 0;
56 float straightPath[MAX_POLYS * 3];
57 unsigned char straightPathFlags[MAX_POLYS];
59 int nstraightPath = 0;
60 float polyPickExt[3] = {2, 4, 2};
62 float smoothPath[MAX_SMOOTH * 3];
64 float queryPoly[4 * 3];
66 float randPoints[MAX_RAND_POINTS * 3];
68 bool randPointsInCircle =
false;
77 bool hitResult =
false;
78 float distanceToWall = 0;
79 float neighborhoodRadius = 2.5f;
80 float randomRadius = 5.0f;
84 int pathIterPolyCount = 0;
90 static constexpr int MAX_STEER_POINTS = 10;
91 float steerPoints[MAX_STEER_POINTS * 3];
92 int steerPointCount = 0;
99 void reset()
override;
101 void onClick(
const float* s,
const float* p,
bool shift)
override;
104 void update(
const float dt)
override;
109 void drawAgent(
const float* pos,
float r,
float h,
float c,
const unsigned int col)
const;
unsigned int dtStatus
Definition DetourStatus.h:22
static const unsigned int DT_FAILURE
Definition DetourStatus.h:25
SampleToolType
Tool types.
Definition Sample.h:33
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