Home

Awesome

Box2D Logo

Build Status

Build Status

Box2D

Box2D is a 2D physics engine for games.

Box2D Version 3.0 Release Demo

Features

Collision

Physics

System

Samples

Building

Building for Xcode

Compatibility

The Box2D library and samples build and run on Windows, Linux, and Mac.

Box2D should be built on recent versions of clang and gcc. You will need the latest Visual Studio version for C11 atomics to compile (17.8.3+).

AVX2 CPU support is assumed on x64. You can turn this off in the CMake options and use SSE2 instead. There are some compatibility issues with very old CPUs.

Documentation

Community

Contributing

Please do not submit pull requests. Instead, please file an issue for bugs or feature requests. For support, please visit the Discord server.

Giving Feedback

Please file an issue or start a chat on discord.

License

Box2D is developed by Erin Catto and uses the MIT license.

Sponsorship

Support development of Box2D through Github Sponsors

Ports, wrappers, and bindings