Physics Body Editor is a free and open-source software that enables you to import your game assets and easily define collision outlines for these assets.
This outline is automatically transformed into multiple convex polygons to fit the box2d engine requirements.
Then, a FixtureAtlas can be used to load the collision data from the saved files into your games.
Detailed instructions on how to install and use the Physics Body Editor utility on your Mac are available HERE.
Note: Physics Body Editor is built around the Box2D engine, but its output format makes it engine-independent. Therefore, it may also be used with Chipmunk, Farseer, etc. All you have to do is to write a custom loader for your preferred engine implementation.
Here are some key features of "Physics Body Editor":
· Built-in collision tester! Throw balls at your body to test it!
· Supports multiple outlines for a single body!
· Two different polygonization algorithms: BAYAZIT and EWJORDAN
· Visual grid with snap-to-grid option
· Many options to fine-tune your bodies
· Help messages everywhere!
· Simple output format, to let you create your own loader (see FixtureAtlas)
· Exports as binary, XML, or JSON!
· FixtureAtlas implementation for libGDX
Requirements:
· Java