add btActivationCollisionAlgoritm to fix deactivation problems, reported here:

http://bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=2616

provide access to active objects, requested here:
http://code.google.com/p/bullet/issues/detail?id=128
This commit is contained in:
erwin.coumans
2008-11-07 03:37:14 +00:00
parent f46d65d337
commit 86353f0ad8
25 changed files with 317 additions and 188 deletions

View File

@@ -84,6 +84,10 @@ protected:
btAlignedObjectArray<btCollisionObject*> m_collisionObjects;
///temporarily solution to keep track of active objects. This work-in-progress will improve when we refactor island management.
btAlignedObjectArray<btCollisionObject*> m_activeObjects;
btDispatcher* m_dispatcher1;
btDispatcherInfo m_dispatchInfo;
@@ -94,6 +98,9 @@ protected:
btIDebugDraw* m_debugDrawer;
protected:
void findActiveObjects();
public:
@@ -135,6 +142,16 @@ public:
virtual void updateAabbs();
btCollisionObjectArray& getActiveObjects()
{
return m_activeObjects;
}
const btCollisionObjectArray& getActiveObjects() const
{
return m_activeObjects;
}
virtual void setDebugDrawer(btIDebugDraw* debugDrawer)
{
m_debugDrawer = debugDrawer;