confusion about memory management, and removed obsolete PhysicsInterface code.todo: updated the demos that still use this code

This commit is contained in:
ejcoumans
2006-09-29 19:57:23 +00:00
parent 0d7c960eb6
commit 14397a2f72
39 changed files with 74 additions and 5700 deletions

View File

@@ -88,28 +88,30 @@ protected:
btDispatcher* m_dispatcher1;
btOverlappingPairCache* m_pairCache;
btOverlappingPairCache* m_broadphasePairCache;
bool m_ownsDispatcher;
bool m_ownsBroadphasePairCache;
public:
btCollisionWorld(btDispatcher* dispatcher,btOverlappingPairCache* pairCache)
:m_dispatcher1(dispatcher),
m_pairCache(pairCache)
{
//this constructor will create and own a dispatcher and paircache and delete it at destruction
btCollisionWorld();
//this constructor doesn't own the dispatcher and paircache/broadphase
btCollisionWorld(btDispatcher* dispatcher,btOverlappingPairCache* pairCache);
}
virtual ~btCollisionWorld();
btBroadphaseInterface* getBroadphase()
{
return m_pairCache;
return m_broadphasePairCache;
}
btOverlappingPairCache* getPairCache()
{
return m_pairCache;
return m_broadphasePairCache;
}