Files
Gymnasium/docs/environments/box2d.md

30 lines
862 B
Markdown
Raw Permalink Normal View History

2022-09-13 20:27:34 +01:00
---
firstpage:
lastpage:
---
# Box2D
2022-09-13 20:27:34 +01:00
```{toctree}
:hidden:
2022-10-03 19:01:14 +01:00
box2d/bipedal_walker
box2d/car_racing
box2d/lunar_lander
```
2022-09-13 20:27:34 +01:00
```{raw} html
2022-10-03 19:01:14 +01:00
:file: box2d/list.html
2022-09-13 20:27:34 +01:00
```
2022-10-03 19:01:14 +01:00
2022-10-10 17:23:40 +02:00
These environments all involve toy games based around physics control, using [box2d](https://box2d.org/) based physics and PyGame-based rendering. These environments were contributed back in the early days of OpenAI Gym by Oleg Klimov, and have become popular toy benchmarks ever since. All environments are highly configurable via arguments specified in each environment's documentation.
2022-10-03 19:01:14 +01:00
2022-09-13 20:27:34 +01:00
The unique dependencies for this set of environments can be installed via:
````bash
pip install swig
2022-09-13 20:27:34 +01:00
pip install gymnasium[box2d]
````
[SWIG](https://swig.org/) is necessary for building the wheel for [box2d-py](https://pypi.org/project/box2d-py/), the Python package that provides bindings to box2d.