mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-08-16 08:09:53 +00:00
Renamed all instances of 'extents' to 'halfExtents' (#279)
This commit is contained in:
committed by
Jakob Botsch Nielsen
parent
840c100639
commit
7cca61dc41
@@ -124,12 +124,12 @@ Sample_Debug::Sample_Debug() :
|
||||
m_navMesh->addTileAt(-14,-14, data, dataSize, true);
|
||||
}
|
||||
|
||||
const float ext[3] = {40,100,40};
|
||||
const float halfExtents[3] = {40,100,40};
|
||||
const float center[3] = { -1667.9491f, 135.52649f, -1680.6149f };
|
||||
dtQueryFilter filter;
|
||||
m_ref = m_navMesh->findNearestPoly(center, ext, &filter, 0);
|
||||
m_ref = m_navMesh->findNearestPoly(center, halfExtents, &filter, 0);
|
||||
|
||||
vcopy(m_ext, ext);
|
||||
vcopy(m_halfExtents, halfExtents);
|
||||
vcopy(m_center, center);*/
|
||||
|
||||
|
||||
@@ -204,8 +204,8 @@ void Sample_Debug::handleRender()
|
||||
duDebugDrawNavMeshPoly(&m_dd, *m_navMesh, m_ref, duRGBA(255,0,0,128));
|
||||
|
||||
/* float bmin[3], bmax[3];
|
||||
rcVsub(bmin, m_center, m_ext);
|
||||
rcVadd(bmax, m_center, m_ext);
|
||||
rcVsub(bmin, m_center, m_halfExtents);
|
||||
rcVadd(bmax, m_center, m_halfExtents);
|
||||
duDebugDrawBoxWire(&dd, bmin[0],bmin[1],bmin[2], bmax[0],bmax[1],bmax[2], duRGBA(255,255,255,128), 1.0f);
|
||||
duDebugDrawCross(&dd, m_center[0], m_center[1], m_center[2], 1.0f, duRGBA(255,255,255,128), 2.0f);*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user