Added a very basic dynamics demo, only using spheres (and optionally boxes)

This commit is contained in:
ejcoumans
2006-10-09 20:41:18 +00:00
parent 659207e7a3
commit f3eb3cfa37
12 changed files with 311 additions and 16 deletions

View File

@@ -26,10 +26,12 @@ m_ownManifold(false),
m_manifoldPtr(mf),
m_isSwapped(isSwapped)
{
btCollisionObject* sphereObj = m_isSwapped? col1 : col0;
btCollisionObject* boxObj = m_isSwapped? col0 : col1;
if (!m_manifoldPtr && m_dispatcher->needsCollision(col0,col1))
if (!m_manifoldPtr && m_dispatcher->needsCollision(sphereObj,boxObj))
{
m_manifoldPtr = m_dispatcher->getNewManifold(col0,col1);
m_manifoldPtr = m_dispatcher->getNewManifold(sphereObj,boxObj);
m_ownManifold = true;
}
}