Box2D


Although Flame does not implement Box2D, it does package the Java Box2D version of Dart implemented by Google.

The box2D source code packaged on Flame can be viewed here.

Here is a simple game that shows how to use Box2D.

BaseGame extension

—————— If you want to use Box2D in your project, it is best to use the BaseGame class box2D-specific extension. Called Box2DGame, it controls the addition and removal of Box2D’s BodyComponent from your root Box2DComponent. A simple Box2DGame implementation example can be viewed here.