- Timestamp:
- Oct 29, 2008, 1:09:31 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/physics/src/orxonox/objects/HelloBullet.cc
r1995 r2047 50 50 RegisterObject(HelloBullet); 51 51 COUT(0) << "HelloBullet loaded" << std::endl ; 52 int maxProxies = 1024 53 54 55 btVector3 worldAabbMin(-10000,-10000,-10000); 56 btVector3 worldAabbMax(10000,10000,10000); 57 btAxisSweep3* broadphase = new btAxisSweep3(worldAabbMin,worldAabbMax,maxProxies); 58 59 // Set up the collision configuration and dispatcher 60 btDefaultCollisionConfiguration* collisionConfiguration = new btDefaultCollisionConfiguration(); 61 btCollisionDispatcher* dispatcher = new btCollisionDispatcher(collisionConfiguration); 62 63 // The actual physics solver 64 btSequentialImpulseConstraintSolver* solver = new btSequentialImpulseConstraintSolver; 65 66 // The world. 67 btDiscreteDynamicsWorld* dynamicsWorld = new btDiscreteDynamicsWorld(dispatcher,broadphase,solver,collisionConfiguration); 52 68 } 53 69
Note: See TracChangeset
for help on using the changeset viewer.