mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-11-18 13:56:00 +00:00
The ugly and humble beginnings of path following and multi-agent navigation code.
This commit is contained in:
@@ -315,7 +315,7 @@ void NavMeshTesterTool::handleMenu()
|
||||
}
|
||||
}
|
||||
|
||||
void NavMeshTesterTool::handleClick(const float* p, bool shift)
|
||||
void NavMeshTesterTool::handleClick(const float* s, const float* p, bool shift)
|
||||
{
|
||||
if (shift)
|
||||
{
|
||||
@@ -477,6 +477,10 @@ void NavMeshTesterTool::handleStep()
|
||||
|
||||
}
|
||||
|
||||
void NavMeshTesterTool::handleUpdate(const float dt)
|
||||
{
|
||||
}
|
||||
|
||||
void NavMeshTesterTool::reset()
|
||||
{
|
||||
m_startRef = 0;
|
||||
@@ -893,8 +897,8 @@ void NavMeshTesterTool::handleRender()
|
||||
|
||||
for (int i = 0; i < m_steerPointCount-1; ++i)
|
||||
{
|
||||
dd.vertex(m_steerPoints[i*3+0],m_steerPoints[i*3+1]+0.2f,m_steerPoints[i*3+2], duDarkenColor(steerCol));
|
||||
dd.vertex(m_steerPoints[(i+1)*3+0],m_steerPoints[(i+1)*3+1]+0.2f,m_steerPoints[(i+1)*3+2], duDarkenColor(steerCol));
|
||||
dd.vertex(m_steerPoints[i*3+0],m_steerPoints[i*3+1]+0.2f,m_steerPoints[i*3+2], duDarkenCol(steerCol));
|
||||
dd.vertex(m_steerPoints[(i+1)*3+0],m_steerPoints[(i+1)*3+1]+0.2f,m_steerPoints[(i+1)*3+2], duDarkenCol(steerCol));
|
||||
}
|
||||
|
||||
dd.end();
|
||||
|
||||
Reference in New Issue
Block a user