Rust binding for Box2D
Clone or download
Gohla and Bastacyclop Build and link Box2D in the build script (#10)
* Build and link Box2D in the build script.

Build and link the Box2D submodule in, not requiring users to have Box2D installed on their system.
This significantly reduces the effort to use this library on Windows, since it does not have a package manager to install Box2D.
This does require users to have CMake installed, because this is what Box2D uses as its build system.

* Use HTTPS for submodule.

* Allow Box2D to be supplied by the user.

* Bump version and update README.

* Keep Box2D include directory constant, but allow the library to be provided.

* Search for Box2D library in proper way.
Update readme.
Latest commit 7b504a4 Jun 3, 2018

rust_box2d Build Status License

A library wrapping around the Box2D physics engine. It aims to provide an idiomatic interface.

Box2D is a 2D rigid body simulation library for games. Programmers can use it in their games to make objects move in realistic ways and make the game world more interactive. From the game engine's point of view, a physics engine is just a system for procedural animation.

You won't find a lot of information about Box2D itself here, look at the official website instead.


You can look at the testbed for examples.


You will need CMake installed in order to build Box2D.

Alternatively, you can supply your own installation of Box2D (version 2.3.1) by pointing the BOX2D_LIB_DIR environment variable to the directory containing the compiled Box2D library. For example:

BOX2D_LIB_DIR="path\to\Box2D\lib" cargo build