Skip to content
The D2 port of the Box2D game physics library.
Branch: master
Clone or download
Latest commit 6f81fe0 Jan 25, 2015
Type Name Latest commit message Commit time
Failed to load latest commit information.
screenshot Fix the readme. May 23, 2014
src/dbox Fix builds on Posix x86_64. May 24, 2014
.gitignore Add more gitignore stuff. May 20, 2014 Add initial port. May 20, 2014
dub.json Fix build on 2.066 Aug 26, 2014
license.txt Add initial port. May 20, 2014 Fix readme. Aug 26, 2014



This is a D port of the Box2D game physics library.

Currently dbox targets Box2D version 2.3.1.

Box2D was created by Erin Catto.


Supported compiler versions

Compilers based on the v2.066 front-end can be used to build and run dbox.


Use dub to build and run the examples:

# A console example of the physics engine being run.
$ dub run dbox:hello_world

# An interactive GUI test-suite containing dozens of examples.
$ dub run dbox:demo

Runtime Requirements

Windows and Linux

You will need to install the glfw shared library in order to run the demo.


You can try installing the glfw v3 library via the brew package manager:

brew tap homebrew/versions
brew install glfw3


Documentation is coming soon.

Building dbox as a static library

Run dub alone in the root project directory to build dbox as a static library:

$ dub



Distributed under the zlib license.

See the accompanying file license.txt.

You can’t perform that action at this time.