# PyBullet

> Source: https://aiwiki.ai/wiki/pybullet
> Updated: 2026-11-18
> Fact-checked: 2026-11-18
> Categories: Developer Tools, Open Source AI, Reinforcement Learning, Robotics
> License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) - attribute to "AI Wiki (aiwiki.ai)"
> Cite as: AI Wiki. "PyBullet." aiwiki.ai, 18 Nov 2026. https://aiwiki.ai/wiki/pybullet
> From AI Wiki (https://aiwiki.ai), the free encyclopedia of artificial intelligence. Reuse freely with attribution.

**PyBullet** is an open-source [Python](https://aiwiki.ai/wiki/python) module for physics simulation, robotics and [reinforcement learning](https://aiwiki.ai/wiki/reinforcement_learning), built as the official Python interface to the Bullet Physics SDK. It loads articulated robots from URDF, SDF and MJCF files and provides forward dynamics simulation, inverse dynamics, forward and inverse kinematics, collision detection and ray intersection queries, along with built-in rendering for synthetic camera images.[1][2] Its authors, Erwin Coumans and Yunfei Bai, describe it as "a fast and easy to use Python module for robotics simulation and machine learning, with a focus on sim-to-real transfer."[1] The bindings first shipped with Bullet 2.85 in October 2016, and the package was first uploaded to the Python Package Index in April 2017; it is distributed under the zlib license[2][4] and became one of the most cited simulators in machine learning research.[11] It was used for work such as Google's 2018 sim-to-real quadruped locomotion study and the RSS 2020 best paper on imitating animal motion.[7][8]

PyBullet ships with a set of [Gym](https://aiwiki.ai/wiki/gym) environments (pybullet_envs) that includes PyBullet versions of the classic continuous-control locomotion tasks, and [OpenAI](https://aiwiki.ai/wiki/openai) pointed users to those environments when it deprecated its own Bullet-based Roboschool simulator in 2019.[1][10] Releases have been infrequent since 2022: as of November 2026 the most recent PyPI release is 3.2.7 from January 2025, and the Bullet repository's README says its issue tracker is closed.[2][3]

<figure class="w-56">
<img src="/images/media-2026-11-18-pybullet-c739e14f3284-tile.png" alt="Bullet Physics Library logo: black squares tumbling in an orange circle beside grey BULLET lettering" width="744" height="370" />
<figcaption>Logo of the Bullet Physics Library, the C++ engine for which PyBullet is the official Python interface. Owner is Erwin Coumans, wikipedia@erwincoumans.com [1], via <a href="https://commons.wikimedia.org/wiki/File:Bullet_Physics_Logo.svg">Wikimedia Commons</a>, <a href="http://creativecommons.org/publicdomain/zero/1.0/deed.en">CC0</a>.</figcaption>
</figure>

## Key facts

| Item | Detail |
|---|---|
| Developers | Erwin Coumans, Yunfei Bai, Jasmine Hsu (PyPI author list)[2] |
| Underlying engine | Bullet Physics SDK (C++)[3] |
| First PyPI release | 0.1.1, 2017-04-03[2] |
| Latest PyPI release (as of November 2026) | 3.2.7, 2025-01-30[2] |
| License | zlib[2][3] |
| Repository | github.com/bulletphysics/bullet3[3] |
| Model formats | URDF, SDF, MJCF, .bullet[1] |
| Default time step | 1/240 second[1] |
| Documentation | PyBullet Quickstart Guide (Google Docs)[1] |

<figure class="embedvideo">
<iframe src="https://www.youtube-nocookie.com/embed/xf_UXK0OTIk" title="Sim-to-Real: Learning Agile Locomotion For Quadruped Robots @ RSS 2018"></iframe>
<figcaption>"Sim-to-Real: Learning Agile Locomotion For Quadruped Robots @ RSS 2018", official video from Erwin Coumans, published April 13, 2018. <a href="https://www.youtube.com/watch?v=xf_UXK0OTIk">Watch on YouTube</a>.</figcaption>
</figure>

## History

### Bullet Physics

Bullet is a C++ library for real-time collision detection and multi-physics simulation. Its repository describes it as serving "VR, games, visual effects, robotics, machine learning etc." and states that the source is licensed under the permissive zlib license unless a folder or file says otherwise.[3] Erwin Coumans is the library's main author. A 2011 fxguide profile reported that he had recently joined [AMD](https://aiwiki.ai/wiki/amd) after working at [Sony](https://aiwiki.ai/wiki/sony) Computer Entertainment in R&D, and that visual effects studios including Digital Domain, Framestore and Weta Digital, as well as 3D packages such as Cinema 4D, Houdini, 3ds Max, Blender and Maya, had adopted the engine. Coumans attributed much of that adoption to the permissive license, which let studios customize the source.[5]

In January 2015 the Academy of Motion Picture Arts and Sciences announced a Technical Achievement Award for Coumans "for the development of the Bullet physics library", shared with Nafees Bin Zafar and Stephen Marshall for two separate large-scale destruction simulation systems built on Bullet.[6][23]

### Python bindings and robotics focus

PyBullet first appeared in the Bullet 2.85 release of 15 October 2016, whose notes said it "introduces pybullet, easy to use Python bindings" together with virtual reality support and inverse kinematics and dynamics. Bullet 2.86, released in February 2017, improved the bindings for robotics, machine learning and VR and added preliminary loading of MuJoCo MJCF files.[4] The project's recommended citation also dates it to 2016, and the first versions of the package appeared on PyPI on 3 April 2017.[2][3] The quickstart guide explains that PyBullet wraps a newer Bullet C API designed to be independent of the underlying physics and rendering engines, so that the bindings could move to newer Bullet versions or a different engine; by default it runs the Bullet 2.x API on the CPU.[1]

Much of the robotics work came out of [Google](https://aiwiki.ai/wiki/google). The 2018 paper "Sim-to-Real: Learning Agile Locomotion For Quadruped Robots" lists Coumans as a [Google Brain](https://aiwiki.ai/wiki/google_brain) author and Bai at X, and its authors built their simulation of the Minitaur quadruped "using PyBullet", which they describe as a module that "extends the Bullet Physics Engine with robotics and machine learning capabilities."[7] The Bullet 2.88 release notes say the SDK "was used in several published research papers by Google Brain Robotics", naming that RSS 2018 paper.[4] The PyPI listing gives a google.com contact address for Coumans.[2] As of November 2026 Coumans's GitHub profile lists NVIDIA.[19]

### Release timeline

The table lists GitHub releases of the Bullet repository that were announced with PyBullet changes, plus the first and the later PyPI-only releases. Dates are GitHub release dates unless marked PyPI.

| Date | Release | Notes |
|---|---|---|
| 2016-10-15 | Bullet 2.85 | Introduced pybullet, with VR support and inverse kinematics and dynamics[4] |
| 2017-02-19 | Bullet 2.86 | Improved pybullet bindings, preliminary MJCF loading[4] |
| 2017-04-03 | PyBullet 0.1.1 (PyPI) | First version on PyPI[2] |
| 2017-09-29 | Bullet 2.87 | Robotics and RL environments, VR support, preliminary C# bindings for Unity[4] |
| 2018-12-31 | Bullet 2.88 | Determinism when saving and restoring state, more accurate GJK collision detection and multibody dynamics[4] |
| 2019-12-21 | Bullet 2.89 | Finite element method deformables and cloth, Laikago quadruped model, DeepMimic reimplementation[4] |
| 2020-09-24 | 3.06 | Release used for the animal-imitation locomotion research[4] |
| 2021-05-07 | PyBullet 3.1.7 / Bullet 3.17 | Same research release notes; 3.1.7 reached PyPI on this date, while the GitHub release page carries an earlier date of 2020-11-26[2][4] |
| 2021-12-01 | 3.21 | GitHub release[4] |
| 2022-04-24 | PyBullet 3.2.5 (GitHub) | Bug fixes, faster debug point rendering for point clouds; 3.2.5 reached PyPI on 2022-05-20[2][4] |
| 2023-11-28 | PyBullet 3.2.6 (PyPI) | PyPI release[2] |
| 2025-01-30 | PyBullet 3.2.7 (PyPI) | Rebuilt wheels compatible with NumPy 1.x and 2.0[2][21] |

### Maintenance status

Activity in the repository has been light since 2022. The commit history shows a handful of changes in 2024 and 2025, including a pyproject.toml in October 2025, and three README edits in October 2026.[21] The README states that "The Issue tracker was flooded with support questions and is closed until it is cleaned up" and points readers to the historic discussion forums at bulletphysics.github.io.[3] The most recent news post on pybullet.org is from March 2022.[9]

## Design and features

### Client-server architecture

PyBullet is organized around a client-server API: the Python client sends commands and a physics server returns status. A `DIRECT` connection runs the physics engine in the same process with no window, and `GUI` adds an OpenGL visualizer. Other modes connect to a separate physics server over shared memory, UDP or TCP, so a script on Linux can drive a simulation running on a Windows VR machine.[1] The `bullet_client` helper in pybullet_utils wraps the API so that several independent simulations can run side by side, and the bundled Gym environments use it for parallel training.[1]

A minimal script adapted from the quickstart guide connects to the simulator, sets gravity, loads a plane and a robot from URDF, and steps the simulation in a loop:[1]

```python
import pybullet as p
import time
import pybullet_data
physicsClient = p.connect(p.GUI)  # or p.DIRECT for non-graphical version
p.setAdditionalSearchPath(pybullet_data.getDataPath())
p.setGravity(0, 0, -10)
planeId = p.loadURDF("plane.urdf")
boxId = p.loadURDF("r2d2.urdf", [0, 0, 1], p.getQuaternionFromEuler([0, 0, 0]))
for i in range(10000):
    p.stepSimulation()
    time.sleep(1./240.)
p.disconnect()
```

### Dynamics and control

Each call to `stepSimulation` performs collision detection, constraint solving and integration, with a default time step of 1/240 second.[1] By default, joints loaded from URDF use reduced coordinates simulated with the Featherstone Articulated Body Algorithm (Bullet's btMultiBody); an option instead builds each link as a separate rigid body joined by constraints. The quickstart says multibodies, rigid bodies and deformables are handled by a single LCP constraint solver.[1] The Sim-to-Real paper describes the engine as solving the equations of motion for articulated rigid bodies in generalized coordinates while satisfying contact, joint-limit and actuator constraints, then integrating with a semi-implicit scheme.[7]

Joint motors can be driven in position, velocity, torque and PD control modes, with an experimental stable PD mode used by the DeepMimic examples.[1] The API also exposes inverse dynamics, Jacobians, a mass matrix computed with the composite rigid body algorithm, and inverse kinematics.[1] Users can add constraints between links to close kinematic loops that URDF trees cannot express, such as the five-bar leg linkage of a quadruped.[1]

### Deformables

Besides articulated and rigid bodies, PyBullet simulates cloth and volumetric deformables with two-way coupling to rigid bodies. Position based dynamics is the default, and a finite element method world can be enabled with `resetSimulation(p.RESET_USE_DEFORMABLE_WORLD)`.[1] The Bullet 2.89 release credited Xuchen Han with the finite element implementation.[4]

### Rendering, sensing and tools

`getCameraImage` returns an RGB image, a depth buffer and a per-pixel segmentation mask of body IDs from an arbitrary camera. Images can come from the OpenGL renderer or from TinyRenderer, a CPU software renderer that works in `DIRECT` mode on servers without a GPU. On Linux an EGL plugin allows hardware OpenGL rendering without an X11 display, for example in the cloud or in [Google Colab](https://aiwiki.ai/wiki/google_colab).[1] Other features include collision queries (contact points, closest points, overlapping bounding boxes, batched ray tests), state logging including MP4 video, saving and restoring simulation state, [virtual reality](https://aiwiki.ai/wiki/virtual_reality) support for HTC Vive and Oculus Rift headsets, debug drawing and GUI sliders, and a C/C++ plugin interface used internally for features such as PD control and rendering.[1]

## Reinforcement learning environments

Installing the package also installs pybullet_envs, a suite of environments registered with OpenAI Gym, and pybullet_data, a collection of URDF and SDF robot models and meshes.[1] The registration code imports the original `gym` package rather than its successor Gymnasium.[18] The quickstart guide states that the developers "ported the Roboschool environments to pybullet" and calls them harder than the [MuJoCo](https://aiwiki.ai/wiki/mujoco) Gym equivalents.[1]

| Environment | Description |
|---|---|
| MinitaurBulletEnv-v0 | Ghost Robotics Minitaur quadruped on flat ground, used for the RSS 2018 sim-to-real paper[1] |
| HumanoidDeepMimicBackflipBulletEnv-v1, HumanoidDeepMimicWalkBulletEnv-v1 | Reimplementation of DeepMimic, a humanoid imitating reference motion[1] |
| RacecarBulletEnv-v0, RacecarZedBulletEnv-v0 | MIT RC racecar driving toward a ball, from position or camera pixels[1] |
| KukaBulletEnv-v0, KukaCamBulletEnv-v0 | [KUKA](https://aiwiki.ai/wiki/kuka) iiwa arm grasping an object in a tray, from state or pixels[1] |
| AntBulletEnv-v0, HalfCheetahBulletEnv-v0, HopperBulletEnv-v0, Walker2DBulletEnv-v0, HumanoidBulletEnv-v0 | Locomotion tasks ported from Roboschool[1] |
| InvertedPendulumBulletEnv-v0, InvertedDoublePendulumBulletEnv-v0, InvertedPendulumSwingupBulletEnv-v0 | Pendulum balancing tasks[1] |

The guide includes examples of training these tasks with [Stable Baselines](https://aiwiki.ai/wiki/stable_baselines), [TensorFlow](https://aiwiki.ai/wiki/tensorflow) Agents [PPO](https://aiwiki.ai/wiki/ppo), and methods such as augmented random search and evolution strategies.[1][4] When OpenAI deprecated Roboschool on 27 September 2019, its README told users "We are deprecating Roboschool and now recommend using PyBullet instead."[10]

## Use in research

PyBullet became a common base for robot learning work, especially for [sim-to-real transfer](https://aiwiki.ai/wiki/sim_to_real_transfer), and for frameworks that other researchers build on.

| Year | Project | Use of PyBullet |
|---|---|---|
| 2018 | Sim-to-Real: Learning Agile Locomotion For Quadruped Robots (Tan et al., Google) | Minitaur simulation for trotting and galloping gaits, improved with an actuator model, latency and randomization, then deployed on the real robot[7] |
| 2019 | Assistive Gym (Erickson et al.) | Simulation framework for robots assisting people with tasks such as feeding, dressing and bathing; presented at [ICRA](https://aiwiki.ai/wiki/icra) 2020[9][12] |
| 2020 | Learning Agile Robotic Locomotion Skills by Imitating Animals (Peng et al., Google Research and UC Berkeley) | All simulations run in PyBullet; won the RSS 2020 Best Paper Award[8][9] |
| 2020 | Transporter Networks and Ravens (Zeng et al., CoRL 2020) | Ravens is "a collection of simulated tasks in PyBullet" for vision-based pick and place[13][22] |
| 2021 | gym-pybullet-drones (Panerati et al.) | Gym environment for single and multi-agent quadcopter control, accepted at IROS 2021[14] |
| 2021 | panda-gym (Gallouédec et al.) | Goal-conditioned tasks for the Franka Emika Panda arm; the authors chose the open-source PyBullet engine to support open research[15] |
| 2022 | Kubric (Greff et al., CVPR 2022) | Synthetic video dataset generator that interfaces with PyBullet and Blender[16] |

Other projects listed on the Bullet site include the Alphabet "Everyday Robot" work, and [Meta](https://aiwiki.ai/wiki/meta_ai)'s [AI Habitat](https://aiwiki.ai/wiki/ai_habitat) simulator added Bullet physics in version 0.1.3.[9] The Bullet site also announced the Tiny Differentiable Simulator, a separate differentiable physics engine used in the ICRA 2021 paper "NeuralSim: Augmenting Differentiable Simulators with Neural Networks", which Coumans co-authored; the site says it can run entirely on CUDA and reach 1 million simulation steps per second when combined with augmented random search.[9][17]

## Reception and comparisons

A 2024 review of nine physics engines for reinforcement learning by Kaup and colleagues counted, as of 6 September 2023, 1,308 publications citing PyBullet on Google Scholar, more than 1,000 of them in machine learning, and named MuJoCo and PyBullet the most popular engines by number of machine learning papers citing them.[11] The review concluded that "PyBullet offers similar features and usability as MuJoCo, but consistently rates worse in performance reviews," while crediting it with a wide range of functions for loading and defining models.[11] Summarizing earlier benchmarks, it reported that one study found PyBullet ran at a lower real-time factor than MuJoCo but was praised for usability, and that another found agents trained in PyBullet did not transfer their skills to other engines.[11]

The same review criticized the documentation as scattered across Google Docs and PDF files, while noting that PyBullet "has a large community."[11] Another limit for large-scale training is parallelism: PyBullet runs Bullet 2.x on the CPU by default, and GPU execution of collision detection and rigid body dynamics exists in the Bullet repository only as experimental OpenCL support.[1][3]

## Installation and license

PyBullet is installed with `pip install pybullet`.[3] As of November 2026, PyPI provides precompiled 3.2.7 wheels only for Linux on x86-64 (CPython 3.6 to 3.11 and PyPy); on other platforms pip falls back to the source distribution, which has to be compiled.[2] The package is released under the permissive zlib license.[2][3] It had about 290,000 downloads in the 30 days before 18 November 2026, according to PyPI Stats.[20]

## See also

- [MuJoCo](https://aiwiki.ai/wiki/mujoco)
- [Gym (OpenAI Gym / Gymnasium)](https://aiwiki.ai/wiki/gym)
- [Simulation (in AI and robotics)](https://aiwiki.ai/wiki/simulation)
- [Sim-to-real transfer](https://aiwiki.ai/wiki/sim_to_real_transfer)
- [Isaac Lab](https://aiwiki.ai/wiki/isaac_lab)
- [Gazebo Simulator](https://aiwiki.ai/wiki/gazebo_simulator)
- [Robot learning](https://aiwiki.ai/wiki/robot_learning)

## References

1. Erwin Coumans, Yunfei Bai. "PyBullet Quickstart Guide". Google Docs, 2016-2023. https://docs.google.com/document/d/10sXEhzFRSnvFcl3XxNGhnD4N2SedqwdAvK3dsihxVUA/edit
2. Python Package Index. "pybullet 3.2.7". PyPI, 2025-01-30. https://pypi.org/project/pybullet/
3. bulletphysics. "Bullet Physics SDK" (README). GitHub, accessed November 2026. https://github.com/bulletphysics/bullet3
4. bulletphysics. "Releases: bulletphysics/bullet3". GitHub, 2017-2022. https://github.com/bulletphysics/bullet3/releases
5. Mike Seymour. "Bullet open source physics engine". fxguide, 2011-01-03. https://www.fxguide.com/fxfeatured/bullet_open_source_physics_engine/
6. Bullet Real-Time Physics Simulation. "Scientific and Technical Academy Award for the development of Bullet Physics!". pybullet.org, 2015-01-23. https://pybullet.org/wordpress/index.html%3Fp=427.html
7. Jie Tan, Tingnan Zhang, Erwin Coumans, Atil Iscen, Yunfei Bai, Danijar Hafner, Steven Bohez, Vincent Vanhoucke. "Sim-to-Real: Learning Agile Locomotion For Quadruped Robots". arXiv:1804.10332, 2018. https://arxiv.org/abs/1804.10332
8. Xue Bin Peng, Erwin Coumans, Tingnan Zhang, Tsang-Wei Edward Lee, Jie Tan, Sergey Levine. "Learning Agile Robotic Locomotion Skills by Imitating Animals". Robotics: Science and Systems (RSS 2020), project page. https://xbpeng.github.io/projects/Robotic_Imitation/index.html
9. Bullet Real-Time Physics Simulation. "Home of Bullet and PyBullet: physics simulation for games, visual effects, robotics and reinforcement learning" (news posts 2019-2022). pybullet.org. https://pybullet.org/
10. OpenAI. "Roboschool" (README, deprecation notice of 2019-09-27). GitHub. https://github.com/openai/roboschool
11. Michael Kaup, Cornelius Wolff, Hyerim Hwang, Julius Mayer, Elia Bruni. "A Review of Nine Physics Engines for Reinforcement Learning Research". arXiv:2407.08590, 2024. https://arxiv.org/abs/2407.08590
12. Zackory Erickson, Vamsee Gangaram, Ariel Kapusta, C. Karen Liu, Charles C. Kemp. "Assistive Gym: A Physics Simulation Framework for Assistive Robotics". arXiv:1910.04700, 2019. https://arxiv.org/abs/1910.04700
13. Andy Zeng, Pete Florence, Jonathan Tompson, Stefan Welker, Jonathan Chien, Maria Attarian, Travis Armstrong, Ivan Krasin, Dan Duong, Ayzaan Wahid, Vikas Sindhwani, Johnny Lee. "Transporter Networks: Rearranging the Visual World for Robotic Manipulation". arXiv:2010.14406, 2020. https://arxiv.org/abs/2010.14406
14. Jacopo Panerati, Hehui Zheng, SiQi Zhou, James Xu, Amanda Prorok, Angela P. Schoellig. "Learning to Fly -- a Gym Environment with PyBullet Physics for Reinforcement Learning of Multi-agent Quadcopter Control". arXiv:2103.02142, 2021. https://arxiv.org/abs/2103.02142
15. Quentin Gallouédec, Nicolas Cazin, Emmanuel Dellandréa, Liming Chen. "panda-gym: Open-source goal-conditioned environments for robotic learning". NeurIPS 2021 Workshop on Robot Learning, arXiv:2106.13687. https://arxiv.org/abs/2106.13687
16. Klaus Greff et al. "Kubric: A scalable dataset generator". CVPR 2022, arXiv:2203.03570. https://arxiv.org/abs/2203.03570
17. Eric Heiden, David Millard, Erwin Coumans, Yizhou Sheng, Gaurav S. Sukhatme. "NeuralSim: Augmenting Differentiable Simulators with Neural Networks". ICRA 2021, arXiv:2011.04217. https://arxiv.org/abs/2011.04217
18. bulletphysics. "pybullet_envs/__init__.py". GitHub. https://github.com/bulletphysics/bullet3/blob/master/examples/pybullet/gym/pybullet_envs/__init__.py
19. Erwin Coumans. "erwincoumans" (GitHub profile). GitHub, accessed November 2026. https://github.com/erwincoumans
20. PyPI Stats. "pybullet". pypistats.org, accessed 2026-11-18. https://pypistats.org/packages/pybullet
21. bulletphysics. "Commits: bulletphysics/bullet3". GitHub, accessed November 2026. https://github.com/bulletphysics/bullet3/commits/master
22. Google Research. "Ravens" (README). GitHub. https://github.com/google-research/ravens
23. Randall Newton. "Motion picture academy honors software makers". GfxSpeak, 2015-02-09. https://gfxspeak.com/archives/picture-academy-software/

