Box2D.nim Documentation

Search:
Group by:

Welcome

This is the documentation for Box2D.nim, a Nim wrapper for Erin Catto's popular physics engine Box2D.

Getting started

For installation with Nimble, run nimble install box2d.

Check out Box2D.nim's test_world.nim to see how to create a world, create/delete bodies, and step the simulation forward. When you're ready, there are examples which contain slightly more complete projects to tinker with using naylib for rendering.

Reference

For a complete library reference, check out src/box2d/api.