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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user