Examples » Bullet Physics

Integration of Bullet Physics into Magnum.

Shows a rotating table full of cubes that you can shoot down.

Image

Key controls

Arrow keys rotate the camera around, mouse click shoots a cube.

Credits

This example was originally contributed by Jan Dupal.

Source

Full source code is linked below and also available in the magnum-examples GitHub repository.

The ports branch contains additional patches for Emscripten support that aren't present in master in order to keep the example code as simple as possible.