The ugly and humble beginnings of path following and multi-agent navigation code.

This commit is contained in:
Mikko Mononen
2010-08-12 12:54:00 +00:00
parent 474a3ddc67
commit 7d8fe75de1
25 changed files with 8777 additions and 377 deletions
+7 -3
View File
@@ -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();