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

@@ -40,6 +40,9 @@ protected:
std::vector<btTypedConstraint*> m_constraints;
bool m_ownsIslandManager;
bool m_ownsConstraintSolver;
std::vector<btRaycastVehicle*> m_vehicles;
void predictUnconstraintMotion(float timeStep);
@@ -61,8 +64,10 @@ protected:
public:
///this btDiscreteDynamicsWorld constructor gets created objects from the user, and will not delete those
btDiscreteDynamicsWorld(btDispatcher* dispatcher,btOverlappingPairCache* pairCache,btConstraintSolver* constraintSolver);
///this btDiscreteDynamicsWorld will create and own dispatcher, pairCache and constraintSolver, and deletes it in the destructor.
btDiscreteDynamicsWorld();
virtual ~btDiscreteDynamicsWorld();