/rust_box2d

Rust binding for Box2D

Primary LanguageRustzlib LicenseZlib

rust_box2d Build Status

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.

Dependencies

You will need the native Box2D library (2.3.1 or more should be fine). And also Piston dependencies for the testbed.

If necessary, you can specify the Box2D header files location when compiling:

BOX2D_INCLUDE_PATH="path/to/Box2D/Box2D" cargo build