chipmunk6
Bindings for Chipmunk2D 6.x physics library
Summary
| Latest Version | Unknown |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:23 |
Tags
Installation
nimble install chipmunk6
choosenim install chipmunk6
git clone https://github.com/fowlmouth/nimrod-chipmunk/
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| chipmunk6 | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/fowlmouth/nimrod-chipmunk/ |
|---|---|
| Homepage | https://github.com/fowlmouth/nimrod-chipmunk |
| Registry Source | nimble_official |
README
Chipmunk2D
Chipmunk 6.1.* bindings for
Nim 0.14.0 or higher.
Tested with Chipmunk 6.1.5
Installation:
Installation can be done using the Nimble package manager from the shell/command line (Nimble has to be installed):
$ nimble install chipmunk
Notes on some examples:
The examples/planets.nim and examples/debugdraw_text.nim examples need to be compiled with
the switch: -d:csfmlNoDestructors
This disables destructors in the Nim-CSFML library, otherwise you will get a lot of segfaults!
Thanks to BlaXpirit for pointing this out.
Using DebugDraw:
DebugDraw is a library for easily visualizing your simulation. Using it is simple, there is an example in the examples dir :)
Overridden functions
DebugDraw purposefully clashes with these functions:
- debugDraw.addShape() - also creates the proper SFML shape for this shape, if you want to store user data pass it as an extra argument
- debugDraw.removeShape() - destroys the sfml shape
- debugDraw.get/setUserData() - handles the shape userdata correctly, do not call these before the shape is initialized
Call debugDrawInit() after you add statics!