# Bullet物理库

**Bullet物理库**（Bullet）是一个开源C++库，用于实时碰撞检测以及刚体和软体动力学，由埃尔温·库曼斯（Erwin Coumans）开发，以宽松的Zlib许可证发布，允许免费商用。<sup>[1](https://pybullet.org/Bullet/BulletFull/index.html)</sup>它被用于游戏、视觉特效、虚拟现实、机器人和机器学习，其Python绑定PyBullet是强化学习研究的标准仿真后端。<sup>[2](https://github.com/bulletphysics/bullet3)</sup>

| 关键事实 | 详情 |
|---|---|
| 它是什么 | 可移植C++编写的专业级开源碰撞检测、刚体与软体动力学库，在Zlib许可证下可免费商用<sup>[3](https://raw.githubusercontent.com/bulletphysics/bullet3/master/docs/Bullet_User_Manual.pdf)</sup> |
| 起源 | 初始版本于2003年（连续碰撞检测）；首个公开版本于2005年6月1日发布<sup>[4](https://github.com/vancegroup-mirrors/bullet-physics/blob/master/ChangeLog)</sup> |
| 作者与荣誉 | 埃尔温·库曼斯因开发Bullet物理库获得奥斯卡科学技术奖<sup>[5](https://www.oscars.org/news/21-scientific-and-technical-achievements-be-honored-academy-awardsr)</sup> |
| 求解器 | 默认使用`btSequentialImpulseConstraintSolver`，即投影高斯-赛德尔（迭代式LCP）的快速SIMD实现；另有可选的Dantzig、PATH和PGS混合LCP求解器<sup>[6](https://pybullet.org/Bullet/BulletFull/classbtSequentialImpulseConstraintSolver.html)</sup><sup> • </sup><sup>[7](https://graphics.cs.cmu.edu/nsp/course/15-869/slides/references04.pdf)</sup> |
| Python绑定 | PyBullet可加载URDF、SDF、MJCF等格式；提供正向和逆向动力学、正向和逆向运动学、碰撞检测以及射线相交查询<sup>[8](https://github.com/bulletphysics/bullet3/blob/master/docs/pybullet_quickstart_guide/PyBulletQuickstartGuide.md.html)</sup> |
| GPU支持 | 实验性OpenCL路径可将整个碰撞检测和刚体动力学放到GPU上运行；需要高端桌面GPU，如AMD Radeon 7970或NVIDIA GTX 680及以上，且无法在OpenCL CPU设备上运行<sup>[2](https://github.com/bulletphysics/bullet3)</sup> |
| 当前版本 | 最新标记版本为PyBullet 3.2.5（标签3.25）；PyPI包pybullet 3.2.7于2025年1月30日发布<sup>[9](https://github.com/bulletphysics/bullet3/releases)</sup><sup> • </sup><sup>[10](https://pypi.org/project/pybullet/)</sup> |

## 历史

Bullet始于2003年，最初的版本聚焦于连续碰撞检测，首个公开版本于2005年6月1日面世，同年8月又发布了Bullet 0.2，包含演示程序、源代码和一份手册草稿。<sup>[4](https://github.com/vancegroup-mirrors/bullet-physics/blob/master/ChangeLog)</sup>截至2006年的开发工作增添了诸多定义该库今日面貌的特性：三维扫描-剪枝宽相和分离轴测试凸包检测器、凹网格的恢复系数与逐三角形摩擦、复合碰撞形状、铰链约束和通用六自由度约束、CMake构建支持，以及将许可证改为Zlib——变更日志指出，这一改动使在PlayStation 3上部署在法律上更为简便。<sup>[4](https://github.com/vancegroup-mirrors/bullet-physics/blob/master/ChangeLog)</sup>

该项目在电影界的知名度迅速提升。Bullet由埃尔温·库曼斯创建；纳菲斯·本·扎法尔（Nafees Bin Zafar）在梦工厂（DreamWorks）和Digital Domain的制作环境中工作期间，参与了《穿靴子的猫》《创：战纪》和《2012》等影片，他与斯蒂芬·马歇尔（Stephen Marshall）基于Bullet构建的两套大规模破坏仿真系统，与库曼斯的奖项一同获得表彰。<sup>[5](https://www.oscars.org/news/21-scientific-and-technical-achievements-be-honored-academy-awardsr)</sup><sup> • </sup><sup>[11](https://blog.siggraph.org/2015/03/academy-sci-tech-awards-the-siggraph-connection.html/)</sup><sup> • </sup><sup>[21](https://pybullet.org/siggraph2011/erwin_intro_siggraph2011.pdf)</sup>在迪士尼（Disney），Bullet的碰撞检测被用于《闪电狗》，其动力学（包括车辆仿真）被用于《玩具总动员3》和《赛车总动员2》。<sup>[12](https://pybullet.org/siggraph2011/phil_siggraph2011.pdf)</sup>

## 技术设计

Bullet以可移植C++编写，仅需C++ 2003编译器，已在Windows、Linux、Mac OSX、iOS和Android上测试。<sup>[2](https://github.com/bulletphysics/bullet3)</sup>2.83版手册描述了该库的两种物体表示：由约束（`btTypedConstraint`）连接的最大坐标刚体（`btRigidBody`），以及由移动器（mobilizer）通过铰接体算法连接的广义坐标多体（`btMultiBody`）。<sup>[3](https://raw.githubusercontent.com/bulletphysics/bullet3/master/docs/Bullet_User_Manual.pdf)</sup>碰撞检测支持离散和连续模式、射线与凸扫掠测试，除基本图元外还支持凹网格和凸网格。<sup>[3](https://raw.githubusercontent.com/bulletphysics/bullet3/master/docs/Bullet_User_Manual.pdf)</sup>

**约束求解。** 默认求解器是投影高斯-赛德尔迭代法求解线性互补问题的快速SIMD实现。<sup>[6](https://pybullet.org/Bullet/BulletFull/classbtSequentialImpulseConstraintSolver.html)</sup>Bullet还提供混合LCP求解器——Dantzig、PATH和投影高斯-赛德尔，并可回退到顺序冲量求解器；文档称直接MLCP求解器在需要更高质量仿真时有用，例如机器人领域。<sup>[7](https://graphics.cs.cmu.edu/nsp/course/15-869/slides/references04.pdf)</sup>多线程变体`btSequentialImpulseConstraintSolverMt`将约束分组为可并行求解的批次和阶段，支持与串行求解器相同的特性，包括分离穿透冲量、滚动摩擦、热启动和随机化约束排序。<sup>[13](https://pybullet.org/Bullet/BulletFull/classbtSequentialImpulseConstraintSolverMt.html)</sup>

**软体与可变形体。** 用于布料、绳索和可变形体积的软体动力学与刚体进行双向交互。<sup>[3](https://raw.githubusercontent.com/bulletphysics/bullet3/master/docs/Bullet_User_Manual.pdf)</sup>2.89版新增了由韩旭辰（Xuchen Han）贡献的基于有限元法的体积可变形物体与布料的新实现，通过统一约束求解器实现可变形体与刚体或多体物体之间的双向耦合。<sup>[9](https://github.com/bulletphysics/bullet3/releases)</sup>后来的评估仍将Bullet主要视为刚体引擎，与专用软体仿真器相比，其有限元法和软体支持较为有限。<sup>[14](https://www.ece.ualberta.ca/~tbs/pmwiki/pdf/Ou-IROS-2025a.pdf)</sup>

**GPU执行。** 实验性OpenCL路径可在GPU上执行整个碰撞检测和刚体动力学管线，但需要高端桌面GPU，如AMD Radeon 7970或NVIDIA GTX 680及以上，无法在OpenCL CPU设备上运行，且依赖的OpenCL驱动可能无法编译内核。<sup>[2](https://github.com/bulletphysics/bullet3)</sup>

## PyBullet与机器人生态

PyBullet是在机器人、强化学习和VR中使用该SDK的推荐方式。通过`pip3 install pybullet`安装，可从URDF、SDF、MJCF及其他文件格式加载铰接体，提供正向动力学仿真、逆向动力学计算、正向和逆向运动学、碰撞检测以及射线相交查询。<sup>[8](https://github.com/bulletphysics/bullet3/blob/master/docs/pybullet_quickstart_guide/PyBulletQuickstartGuide.md.html)</sup>它封装了一套设计上独立于底层物理和渲染引擎的Bullet C API，默认在CPU上使用Bullet 2.x API，并包含对CPU渲染器（TinyRenderer）、OpenGL可视化和VR头显（如HTC Vive和Oculus Rift）的绑定。<sup>[8](https://github.com/bulletphysics/bullet3/blob/master/docs/pybullet_quickstart_guide/PyBulletQuickstartGuide.md.html)</sup>该SDK附带机器人示例，包括仿真的Minitaur四足机器人、通过TensorFlow推理奔跑的人形机器人，以及抓取物体的KUKA机械臂。<sup>[8](https://github.com/bulletphysics/bullet3/blob/master/docs/pybullet_quickstart_guide/PyBulletQuickstartGuide.md.html)</sup>

PyBullet是若干研究框架的基础。ROS-PyBullet接口发表于第六届机器人学习会议，为涉及大量接触的操作和人机交互架起PyBullet与机器人操作系统（ROS）之间的桥梁，应用案例包括川田Nextage人形机器人、KUKA LWR和IIWA机械臂以及Kinova机械臂。<sup>[15](https://proceedings.mlr.press/v205/mower23a.html)</sup>qiBullet使用Bullet引擎仿真Pepper和NAO机器人。<sup>[16](https://arxiv.org/abs/1909.00779)</sup>Bullet还集成到机器人领域之外的诸多工具中，包括Maya插件和Blender集成，并支持原生`.bullet`序列化。<sup>[3](https://raw.githubusercontent.com/bulletphysics/bullet3/master/docs/Bullet_User_Manual.pdf)</sup>

## 精度与对比

独立基准测试具体地揭示了Bullet的优势与局限。埃雷兹（Erez）等人2015年发表于ICRA的Bullet、Havok、MuJoCo、ODE和PhysX对比研究发现，每个引擎在其设计所针对的那类系统上表现最佳：MuJoCo在机器人相关测试中获胜，而游戏引擎在游戏相关测试中获胜，它们之间没有明显的领先者。<sup>[17](https://homes.cs.washington.edu/~todorov/papers/ErezICRA15.pdf)</sup>SimBenchmark项目在接触仿真任务上比较RaiSim、Bullet、ODE、MuJoCo和DART，记载Bullet由E. Coumans开发，初始版本于2006年发布，采用MLCP求解器、半隐式欧拉积分、最小坐标和硬/软接触；该项目发现Bullet对带摩擦接触的物体滑动仿真非常准确高效，但在没有后求解器误差修正方法时存在严重的位置级漂移。<sup>[18](https://leggedrobotics.github.io/SimBenchmark/)</sup>一项2022年针对真实世界撞击数据的验证研究涵盖Drake、MuJoCo和Bullet，发现对于抛掷到桌面上的立方体，这些仿真器能很好地捕捉非弹性碰撞，却无法捕捉弹性碰撞。<sup>[19](https://arxiv.org/abs/2110.00541)</sup>一项关于接触仿真可预测性的研究以解析解为基准调校Bullet、DART、MuJoCo和ODE，发现初始条件的微小变化有时会导致不同的接触事件序列和截然不同的结果，并提出精度与可预测性之间存在权衡。<sup>[20](https://www.cs.cmu.edu/~sejoonc/papers/PredictablePhysics.html)</sup>

## 现状

官方仓库bulletphysics/bullet3是Bullet物理SDK的主页，在GitHub上约有1.48万颗星。<sup>[2](https://github.com/bulletphysics/bullet3)</sup>最近的标记版本是PyBullet 3.2.5（标签3.25），这是一个修复版本，回退了凹体提前退出的一处改动，并修复了使用`createMultiBody`时的内存累积问题。<sup>[9](https://github.com/bulletphysics/bullet3/releases)</sup>PyPI包pybullet 3.2.7于2025年1月30日发布，作者署名为埃尔温·库曼斯、白云飞（Yunfei Bai）和Jasmine Hsu，仍采用zlib/libpng许可证。<sup>[10](https://pypi.org/project/pybullet/)</sup>该项目的问题追踪器因被大量求助问题淹没而关闭，用户被引导至PyBullet论坛。<sup>[2](https://github.com/bulletphysics/bullet3)</sup>

## References

1. [Bullet Collision Detection & Physics Library: Bullet Documentation](https://pybullet.org/Bullet/BulletFull/index.html)
2. [bulletphysics/bullet3: Bullet Physics SDK, GitHub repository](https://github.com/bulletphysics/bullet3)
3. [Bullet 2.83 Physics SDK User Manual](https://raw.githubusercontent.com/bulletphysics/bullet3/master/docs/Bullet_User_Manual.pdf)
4. [bullet-physics ChangeLog, vancegroup-mirrors](https://github.com/vancegroup-mirrors/bullet-physics/blob/master/ChangeLog)
5. [21 Scientific And Technical Achievements To Be Honored With Academy Awards, Oscars.org](https://www.oscars.org/news/21-scientific-and-technical-achievements-be-honored-academy-awardsr)
6. [btSequentialImpulseConstraintSolver Class Reference, Bullet Documentation](https://pybullet.org/Bullet/BulletFull/classbtSequentialImpulseConstraintSolver.html)
7. [CMU 15-869 course reference slides on Bullet MLCP solvers](https://graphics.cs.cmu.edu/nsp/course/15-869/slides/references04.pdf)
8. [PyBullet Quickstart Guide, bullet3 repository](https://github.com/bulletphysics/bullet3/blob/master/docs/pybullet_quickstart_guide/PyBulletQuickstartGuide.md.html)
9. [Releases, bulletphysics/bullet3](https://github.com/bulletphysics/bullet3/releases)
10. [pybullet, PyPI](https://pypi.org/project/pybullet/)
11. [Academy Sci-Tech Awards: The SIGGRAPH Connection, ACM SIGGRAPH Blog](https://blog.siggraph.org/2015/03/academy-sci-tech-awards-the-siggraph-connection.html/)
12. [SIGGRAPH 2011 presentation on Bullet integration at Disney](https://pybullet.org/siggraph2011/phil_siggraph2011.pdf)
13. [btSequentialImpulseConstraintSolverMt Class Reference, Bullet Documentation](https://pybullet.org/Bullet/BulletFull/classbtSequentialImpulseConstraintSolverMt.html)
14. [CRESSim-MPM: A Material Point Method Library for Surgical Soft Body Simulation, IROS 2025](https://www.ece.ualberta.ca/~tbs/pmwiki/pdf/Ou-IROS-2025a.pdf)
15. [ROS-PyBullet Interface: A Framework for Reliable Contact Simulation and Human-Robot Interaction, PMLR 205 (2023)](https://proceedings.mlr.press/v205/mower23a.html)
16. [qiBullet, a Bullet-based simulator for the Pepper and NAO robots, arXiv:1909.00779](https://arxiv.org/abs/1909.00779)
17. [Erez, T. et al. Simulation Tools for Model-Based Robotics: Comparison of Bullet, Havok, MuJoCo, ODE and PhysX, ICRA 2015](https://homes.cs.washington.edu/~todorov/papers/ErezICRA15.pdf)
18. [SimBenchmark: Physics engine benchmark for robotics applications](https://leggedrobotics.github.io/SimBenchmark/)
19. [Validating Robotics Simulators on Real-World Impacts, arXiv:2110.00541](https://arxiv.org/abs/2110.00541)
20. [Predictable Behavior During Contact Simulation: A Comparison of Selected Physics Engines](https://www.cs.cmu.edu/~sejoonc/papers/PredictablePhysics.html)
21. [Erwin Intro Siggraph2011.pdf, pybullet.org](https://pybullet.org/siggraph2011/erwin_intro_siggraph2011.pdf)

---
*Initially written Oct 15, 2026*

Topic: 物质世界与数学 › 物理学 › 物理学方法、实践与学术共同体 › Applied and interdisciplinary physics › Computational and simulation physics › Physics simulation software and engines › Real-time physics engines

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/bullet-physics-library

English original: https://www.edgepedia.org/bullet-physics-library
