{"id":60498,"library":"bullet3","title":"Bullet Physics","description":"Bullet Physics is a professional collision detection, rigid body, and soft body dynamics library.","status":"active","version":"3.25","language":"cpp","source_language":null,"source_url":null,"tags":["physics","collision-detection","dynamics","3d","game-development"],"install":[{"cmd":"vcpkg install bullet3","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(bullet3 CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE Bullet::BulletDynamics)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"btBulletDynamicsCommon.h","correct":"#include <btBulletDynamicsCommon.h>"}],"quickstart":{"code":"#include <btBulletDynamicsCommon.h>\n#include <iostream>\n\nint main() {\n    btBroadphaseInterface* broadphase = new btDbvtBroadphase();\n    btDefaultCollisionConfiguration* config = new btDefaultCollisionConfiguration();\n    btCollisionDispatcher* dispatcher = new btCollisionDispatcher(config);\n    btSequentialImpulseConstraintSolver* solver = new btSequentialImpulseConstraintSolver();\n    btDiscreteDynamicsWorld* world = new btDiscreteDynamicsWorld(dispatcher, broadphase, solver, config);\n    world->setGravity(btVector3(0, -10, 0));\n    std::cout << \"Bullet world created\" << std::endl;\n    delete world;\n    delete solver;\n    delete dispatcher;\n    delete config;\n    delete broadphase;\n    return 0;\n}","lang":"cpp","description":"Create a basic Bullet physics world"},"warnings":[{"fix":"Add -DBT_USE_DOUBLE_PRECISION to compile definitions if using double precision","message":"Header-only mode requires defining BT_USE_DOUBLE_PRECISION for double precision","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'3d':22 'bodi':11,14 'bullet':1,3 'collis':8,19 'collision-detect':18 'detect':9,20 'develop':25 'dynam':15,21 'game':24 'game-develop':23 'librari':16 'physic':2,4,17 'profession':7 'rigid':10 'soft':13","created_at":"2026-06-16T19:33:30.939202+00:00","updated_at":"2026-06-16T19:33:30.939202+00:00","problems":[],"ecosystem":"vcpkg","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}