$ nimble install chipmunk
Notes on some examples:
The examples/planets.nim and examples/debugdraw_text.nim examples need to be compiled with
This disables destructors in the Nim-CSFML library, otherwise you will get a lot of segfaults!
Thanks to BlaXpirit for pointing this out.
DebugDraw is a library for easily visualizing your simulation. Using it is simple, there is an example in the examples dir :)
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!