mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-09-28 21:16:19 +00:00
The ugly and humble beginnings of path following and multi-agent navigation code.
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
#include "NavMeshTesterTool.h"
|
||||
#include "OffMeshConnectionTool.h"
|
||||
#include "ConvexVolumeTool.h"
|
||||
#include "CrowdTool.h"
|
||||
|
||||
#ifdef WIN32
|
||||
# define snprintf _snprintf
|
||||
@@ -112,7 +113,7 @@ public:
|
||||
imguiValue("Shift+LMB to remove a tile.");
|
||||
}
|
||||
|
||||
virtual void handleClick(const float* p, bool shift)
|
||||
virtual void handleClick(const float* s, const float* p, bool shift)
|
||||
{
|
||||
m_hitPosSet = true;
|
||||
rcVcopy(m_hitPos,p);
|
||||
@@ -126,6 +127,8 @@ public:
|
||||
}
|
||||
|
||||
virtual void handleStep() {}
|
||||
|
||||
virtual void handleUpdate(const float dt) {}
|
||||
|
||||
virtual void handleRender()
|
||||
{
|
||||
@@ -406,6 +409,10 @@ void Sample_TileMesh::handleTools()
|
||||
{
|
||||
setTool(new ConvexVolumeTool);
|
||||
}
|
||||
if (imguiCheck("Create Crowds", type == TOOL_CROWD))
|
||||
{
|
||||
setTool(new CrowdTool);
|
||||
}
|
||||
|
||||
imguiSeparator();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user