box2d 0.3.0

###A Dart 2D physics engine

Build Status Coverage Status

This is a Dart port of Java's Box2D libraries.

The Java Box2D library was originally written by Daniel Murphy (status February 2015).

benchmark/bench2d.dart   Benchmark used by Joel Webber
example/index.html       Browser demos as written by Dominic Hamon
lib/                     Port of Daniel Murphy's jbox2d

First Dart port of an earlier version of Box2D library was done by Dominic Hamon. We are grateful for his work.

Not an official Google project


  • Updated to vector_math 2.0.0


  • Complete re-write. Many APIs have changed.

1. Depend on it

Add this to your package's pubspec.yaml file:

  box2d: "^0.3.0"

2. Install it

You can install packages from the command line:

$ pub get

Alternatively, your editor might support 'pub get'. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:box2d/box2d.dart';


A Dart 2D physics engine


Email Kevin Moore
Email Srdjan Mitrovic



Source code (hyperlinked)



May 9, 2016