some pair management changes, allow to choose pair cache at run-time.

This commit is contained in:
erwin.coumans
2008-03-13 23:57:07 +00:00
parent fde2551637
commit 06a9b3dfc9
6 changed files with 150 additions and 46 deletions

View File

@@ -45,7 +45,7 @@ btSimpleBroadphase::btSimpleBroadphase(int maxProxies, btOverlappingPairCache* o
if (!overlappingPairCache)
{
void* mem = btAlignedAlloc(sizeof(btOverlappingPairCache),16);
m_pairCache = new (mem)btOverlappingPairCache();
m_pairCache = new (mem)btHashedOverlappingPairCache();
m_ownsPairCache = true;
}