This plugin brings rigid bodied physics into Kiwi thanks to Chipmunk2D.
You can download our Chipmunk plugin on github.
Break-apart Kiwi: Example
- Toggle the debug overlay with the button in the top left corner.
- Click and drag a shape to move it.
- Click on empty space in the center of the game to apply gravity.
Working with physics can be tough. So included in the ChipmunkPhysics repo is a ChipmunkPhysicsDebug plugin, which can be optionally added to your games.
You can view an example of the debug plugin in the example above.
When the debug plugin is added to a game and enabled, the debug canvas (included in the core of Kiwi) will appear on top of your game. All shapes and constraints on the defaultSpace will be rendered to the debug canvas, along with arrows indicating any velocity applied to bodies.
The README contains the essential information about working with the Plugin. Examples can be found in the examples folder and API docs are located in the docs folder.