Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
btBulletDynamicsCommon.h
✓ #include <btBulletDynamicsCommon.h>
Create a basic Bullet physics world
#include <btBulletDynamicsCommon.h>
#include <iostream>
int main() {
btBroadphaseInterface* broadphase = new btDbvtBroadphase();
btDefaultCollisionConfiguration* config = new btDefaultCollisionConfiguration();
btCollisionDispatcher* dispatcher = new btCollisionDispatcher(config);
btSequentialImpulseConstraintSolver* solver = new btSequentialImpulseConstraintSolver();
btDiscreteDynamicsWorld* world = new btDiscreteDynamicsWorld(dispatcher, broadphase, solver, config);
world->setGravity(btVector3(0, -10, 0));
std::cout << "Bullet world created" << std::endl;
delete world;
delete solver;
delete dispatcher;
delete config;
delete broadphase;
return 0;
}
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.