- removed STL from the Bullet library: replace std::vector by btAlignedObjectArray. Also removed the std::set for overlapping pair set, and turned it into an overlapping pair array. The SAP only adds objects, never removed. Removal is postponed for during traversal of overlapping pairs (duplicates and non-overlapping pairs are removed during that traversal).

- added heap sort and binary search/linear search to btAlignedObjectArray
- fixed wrong cast, thanks Hamstray, http://www.continuousphysics.com/Bullet/phpBB2/viewtopic.php?t=1015
This commit is contained in:
ejcoumans
2007-03-06 09:59:17 +00:00
parent f8b714cd42
commit 054d672592
54 changed files with 512 additions and 246 deletions

View File

@@ -27,8 +27,8 @@ class btTypedConstraint;
class btRaycastVehicle;
class btIDebugDraw;
#include "../../LinearMath/btAlignedObjectArray.h"
#include <vector>
///btDiscreteDynamicsWorld provides discrete rigid body simulation
///those classes replace the obsolete CcdPhysicsEnvironment/CcdPhysicsController
@@ -40,7 +40,7 @@ protected:
btSimulationIslandManager* m_islandManager;
std::vector<btTypedConstraint*> m_constraints;
btAlignedObjectArray<btTypedConstraint*> m_constraints;
btIDebugDraw* m_debugDrawer;
@@ -56,7 +56,7 @@ protected:
btContactSolverInfo m_solverInfo;
std::vector<btRaycastVehicle*> m_vehicles;
btAlignedObjectArray<btRaycastVehicle*> m_vehicles;
int m_profileTimings;