Custom Loader for PhysicsBodyEditor(box2d)

It’s been a while since I developed games and now before I begin, I need to clarify some doubts.

I am trying to make a simple 2D side scrolling game using cocos2dx C++.

1) I decided to use box2d for physics and as I have sprites of different shapes in my game, I want to know if there is any editor available for box2d which can create custom bodies for my sprites so that I can add them directly to my game.

2) Is cocos2dx v3.4 sufficient for making a nice 2D game?

EDIT:
PhysicsBodyEditor is very useful for creating Custom Physics Bodies but I coudn’t find the Loader class for box2d. Can someone please share the Loader class?

Any suggestions regarding box2d and Custom Physics Bodies are welcomed. :slight_smile:

Hey,

1.Box2d editor is an editor where you can create custom bodies for your sprites.
https://code.google.com/p/box2d-editor/
2.And for the cocos version I would use the last version but v3.4 is also good

Thank you for the link.

Is there a loader class to read the .json output file for box2d?

  1. Yes - but why not use the latest release?

  2. Check out http://alternativeto.net/software/box2d-editor/

Suggestions:
Try to keep the physics body simple - using one of the editors it is easy to end up with complex shapes that match the edge of your sprites - but do you really need that accurate collision?
My shapes are simple and, although I own PhysicsEditor, I actually mainly manually edit the Json most of the time.
Go to http://iforce2d.net where every Box2d question you ever have will be answered (well, pretty much - it’s an awesome resource)