Box2D Visual Editor Preview
So I have been getting back into some more Box2D development for a game I am building. To increase my efficiency I needed an editor to visually create the Box2D world by drawing the shapes and joints. I found a few editors already built but none met my needs of being free, allowing the creation of joints and other Box2D items , as well as being intuitive and easy to use. As such I set about creating a prototype for my own editor.
My goal was to get something up and running as quickly as possible and to implement features as I needed them. After a week of development I have created an editor that can already do a lot of lifting. Features working so far:
- Create circle and rectangle fixtures
- Draw custom polygons and edit the vertex positions
- Drag and drop fixtures to move them
- Rotate and scale fixtures
- Create revolute joints with all parameters able to be set
- Export to XML
- AS3 Importer
The GUI also features panning and a preview window. The next goal will probably be to use the editor in assisting creating levels for Apple’s SpriteKit for iOS7.
If there is enough interest I may release the tool (only after a lot of things have been added and fixed).