Random polygon selection for Detour.

This commit is contained in:
Mikko Mononen
2012-02-27 07:17:51 +00:00
parent 478d5c8605
commit cd3a68dd9b
7 changed files with 444 additions and 1 deletions

View File

@@ -238,6 +238,9 @@ void Sample_SoloMesh::handleRender()
const float* bmin = m_geom->getMeshBoundsMin();
const float* bmax = m_geom->getMeshBoundsMax();
duDebugDrawBoxWire(&dd, bmin[0],bmin[1],bmin[2], bmax[0],bmax[1],bmax[2], duRGBA(255,255,255,128), 1.0f);
dd.begin(DU_DRAW_POINTS, 5.0f);
dd.vertex(bmin[0],bmin[1],bmin[2],duRGBA(255,255,255,128));
dd.end();
if (m_navMesh && m_navQuery &&
(m_drawMode == DRAWMODE_NAVMESH ||