Removed moveAlongPathCorridor() and added more generic moveAlongSurface().

This commit is contained in:
Mikko Mononen
2010-08-09 11:26:07 +00:00
parent b38ebc888f
commit 1c4755012f
8 changed files with 4343 additions and 1556 deletions

View File

@@ -189,9 +189,6 @@ Sample_TileMesh::Sample_TileMesh() :
memset(m_tileBmax, 0, sizeof(m_tileBmax));
setTool(new NavMeshTileTool);
m_smin = 0x0fffffff;
m_smax = -0xfffffff;
}
Sample_TileMesh::~Sample_TileMesh()
@@ -812,26 +809,7 @@ unsigned char* Sample_TileMesh::buildTileMesh(const int tx, const int ty, const
m_triareas = 0;
}
{
const int w = m_solid->width;
const int h = m_solid->height;
int spanCount = 0;
for (int y = 0; y < h; ++y)
{
for (int x = 0; x < w; ++x)
{
for (rcSpan* s = m_solid->spans[x + y*w]; s; s = s->next)
{
m_smin = rcMin(m_smin, (int)s->smin);
m_smax = rcMax(m_smax, (int)s->smax);
}
}
}
printf("smin=%d smax=%d\n", m_smin, m_smax);
}
// Once all geoemtry is rasterized, we do initial pass of filtering to
// Once all geometry is rasterized, we do initial pass of filtering to
// remove unwanted overhangs caused by the conservative rasterization
// as well as filter spans where the character cannot possibly stand.
rcFilterLowHangingWalkableObstacles(m_cfg.walkableClimb, *m_solid);