8 releases

0.4.0 Jun 3, 2018
0.3.4 Jun 4, 2017
0.3.3 Feb 9, 2017
0.3.2 Jul 21, 2016
0.2.5 Apr 28, 2016

#24 in Simulation

Download history 35/week @ 2019-11-30 69/week @ 2019-12-07 9/week @ 2019-12-14 5/week @ 2019-12-21 12/week @ 2019-12-28 7/week @ 2020-01-04 12/week @ 2020-01-11 18/week @ 2020-01-18 11/week @ 2020-01-25 4/week @ 2020-02-01 12/week @ 2020-02-08 6/week @ 2020-02-15 29/week @ 2020-02-22 12/week @ 2020-02-29 21/week @ 2020-03-07 11/week @ 2020-03-14

100 downloads per month
Used in nphysics_testbed2d

zlib-acknowledgement

670KB
18K SLoC

Coq 11K SLoC // 0.1% comments Razor 6K SLoC // 0.0% comments Processing 242 SLoC // 0.0% comments

rust_box2d Build Status Crates.io 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.

Documentation

You can look at the testbed for examples.

Dependencies

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

Dependencies

~0–1MB
~20K SLoC