- 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

@@ -17,7 +17,6 @@ subject to the following restrictions:
#include "DemoApplication.h"
#include <vector>
class btCollisionShape;
class btOverlappingPairCache;
@@ -30,7 +29,7 @@ class BasicDemo : public DemoApplication
{
//keep the collision shapes, for deletion/cleanup
std::vector<btCollisionShape*> m_collisionShapes;
btAlignedObjectArray<btCollisionShape*> m_collisionShapes;
btOverlappingPairCache* m_overlappingPairCache;