Box2D Example

Overview

Demonstration on how to use Box2D physics shapes and body contacts. Press the left mouse button to spawn new physics shapes, and control Poly with WASD.

Try It

Use the following Loom CLI commands to run this example:

loom new MyBox2DExample --example Box2DExample
cd MyBox2DExample
loom run

Screenshot

Box2DExample Screenshot

Code

@insert_source

: