How to create physics objects in Cocos2D with just one click? (well, more or less one click)

Answer: PhysicsEditor

The PhysicsEditor is a shape editor for physics engines like Box2D and Chipmunk.

Before when I was making physics objects in Cocos2D, I used VertexHelper (Johannes Fahrenkrug), which is great and all, but there were a lot of things that you had to consider, such as you had to define the vertices yourself (meaning: ‘click “around” each sprite to define it’s vertices’) and you have to make sure that you don’t accidentally create any concave polygons (what are concave polygons again? check Wikipedia), and then you have to copy paste the generated code into your project. VertexHelper served me well and all, and it was free.

But PhysicsEditor did make me life a whole lot easier.

Andreas Loew wrote tutorials on his blog on how to use PhysicsEditor with Cocos2D:

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s