Off-Mesh connections across tile boundaries. Fixed getPolysAround(). Detour links per poly use linked list. Adjusted off-mesh connection tool.

This commit is contained in:
Mikko Mononen
2010-01-26 12:48:58 +00:00
parent e973b71d4b
commit a56bf3ec2d
16 changed files with 4140 additions and 7625 deletions

View File

@@ -82,7 +82,7 @@ void DebugDrawGL::end()
Sample::Sample() :
m_geom(0),
m_navMesh(0),
m_navMeshDrawFlags(DU_DRAWNAVMESH_CLOSEDLIST),
m_navMeshDrawFlags(DU_DRAWNAVMESH_CLOSEDLIST|DU_DRAWNAVMESH_OFFMESHCONS),
m_tool(0)
{
resetCommonSettings();
@@ -209,3 +209,11 @@ bool Sample::handleBuild()
{
return true;
}
/*
void Sample::handleNavMeshChanged()
{
if (m_geom)
m_geom->updateOffMeshConnectionVisibility(m_navMesh);
}
*/