update build for btConvex2dShape functionality

use btDbvtBroadphase in HelloWorld demo, it is the recommended broadphase
This commit is contained in:
erwin.coumans
2009-09-17 20:17:14 +00:00
parent f65e829ca0
commit dcfb23dc13
5 changed files with 24 additions and 23 deletions

View File

@@ -30,12 +30,8 @@ int main(int argc, char** argv)
///use the default collision dispatcher. For parallel processing you can use a diffent dispatcher (see Extras/BulletMultiThreaded)
btCollisionDispatcher* dispatcher = new btCollisionDispatcher(collisionConfiguration);
///the maximum size of the collision world. Make sure objects stay within these boundaries
///Don't make the world AABB size too large, it will harm simulation quality and performance
btVector3 worldAabbMin(-10000,-10000,-10000);
btVector3 worldAabbMax(10000,10000,10000);
int maxProxies = 1024;
btAxisSweep3* overlappingPairCache = new btAxisSweep3(worldAabbMin,worldAabbMax,maxProxies);
///btDbvtBroadphase is a good general purpose broadphase. You can also try out btAxis3Sweep.
btBroadphaseInterface* overlappingPairCache = new btDbvtBroadphase();
///the default constraint solver. For parallel processing you can use a different solver (see Extras/BulletMultiThreaded)
btSequentialImpulseConstraintSolver* solver = new btSequentialImpulseConstraintSolver;
@@ -173,3 +169,4 @@ int main(int argc, char** argv)
collisionShapes.clear();
}