Features

Edit your physics shapes with ease.

  • Stop copying vertex lists into your code
  • Stop thinking about convex or concave polygons
  • Stop thinking about clockwise or counter clockwise orientation

PhysicsEditor handles all of this for you. Simply drag your shapes inside the editor and press the auto trace button! No more clicking.
Then adjust the shape’s physics parameters and directly export to your game development framework.

PhysicsEditor can be adjusted to fit all needs for frameworks. If a framework is not yet directly supported you can simply create you own exporter.

Shape tracer

The tracer does all the work for you: Detects shape’s transparency borders and creates a simplified polygon for you.

You adjust the number of vertexes it creates by changing the tolerance value.

Omitting semi transparent pixels can be done by changing the alpha threshold value.

In case you are not satisfied with the result you can still edit the shape by hand and fine tune the outlines.

Corona demo

Improve your development. This is all you need:

Load the physics data file:

local physicsData =
(require "shapedefs").physicsData()

Create the shape

obj = display.newImage(name..".png");

This is the complete source code for the falling junk food demo.

physics.addBody(obj, physicsData:get(name))

Download the complete demo and Physics Editor from here:

Cocos2d + Box2D demo

Add the included loader and simply add anchor points and shapes to your box2d bodies:

Load the physics data file:

[[GB2ShapeCache sharedShapeCache]
addShapesWithFile:@"shapedefs.plist"];

Create the body, then add the shape to the body:

[[GB2ShapeCache sharedShapeCache]
addFixturesToBody:body forShapeName:name];

Set the anchor point:

[sprite setAnchorPoint:
[[GB2ShapeCache sharedShapeCache] anchorPointForShape:name]];

Full demo is included!

Cocos2d + Chipmunk demo

Cocos2d + Chipmunk is also available in the current beta version. Complete example and importer code are included.

Please visit my blog for more information.

Flash demo

A flash demo is also included. More details in my blog.

Demo graphics in the screenshots and demo by http://www.vectorjungle.com/