move updateAabbs from dynamics world to collision world

This commit is contained in:
ejcoumans
2007-12-10 02:59:04 +00:00
parent f1be4ab221
commit a45912e39c
7 changed files with 140 additions and 173 deletions

View File

@@ -91,6 +91,9 @@ protected:
btStackAlloc* m_stackAlloc;
btBroadphaseInterface* m_broadphasePairCache;
btIDebugDraw* m_debugDrawer;
public:
@@ -116,6 +119,19 @@ public:
return m_dispatcher1;
}
virtual void updateAabbs();
virtual void setDebugDrawer(btIDebugDraw* debugDrawer)
{
m_debugDrawer = debugDrawer;
}
virtual btIDebugDraw* getDebugDrawer()
{
return m_debugDrawer;
}
///LocalShapeInfo gives extra information for complex shapes
///Currently, only btTriangleMeshShape is available, so it just contains triangleIndex and subpart
struct LocalShapeInfo