[TOOL] Physics Body Editor *New version*

Image

Hello,

I recently wrote an application that lets you easily create complex collision shapes by hand.
I made it because I needed such tool to quickly build some complex bodies for my games.

Features:
  • Built-in collision tester! Throw balls at your body to test it,
  • Supports multiple outlines for a single body,
  • Two different polygonization algorithms (Ewjordan's and Mark Bayazit's),
  • Visual grid with snape-to-grid option,
  • Visual grid offers different resolutions for different zooms,
  • Help messages everywhere!
  • Simple output format, to let you create your own FixtureAtlas

About the loader: I made a loader implementation (called it FixtureAtlas) for the awesome android/desktop game framework libGDX. However, you'll need to create your own loader if you target any other Box2D implementation. Please note that sharing your own loader would be totally awesome 😁

Q: Why didn't you include the edition of fixture parameters like friction, restitution, etc ?
A: I believe those are attributes that should be set in the code, not in a third-party editor. Usually, you'll want to make a big text file with all the parameters inside and read it at runtime, in order to easily tweak them.

From the editor to your games:
Image

-------------------------------------------------------------------------
Screenshots
-------------------------------------------------------------------------


The main ui, with "show grid" option enabled:
Image

Using the built-in collision tester:
Image

-------------------------------------------------------------------------
Links
-------------------------------------------------------------------------


Blog post with information: http://aurelienribon.wordpress.com/2011 ... ditor-1-0/
Project page: http://code.google.com/p/box2d-editor/
The project features downloads for the editor, the libgdx implementation of FixtureAtlas and an executable demo of the FixtureAtlas utilization.


I hope you'll find it useful!
Nice work! This is a Java app?
Yep. It should be portable to windows, linux and os x (but not to the others). I'm using the (awesome) desktop/android cross-platform library LIBGDX for the rendering panel, and it requires native libraries (those natives also contain the box2d implementation, accessed through a JNI wrapper).

However, I think that I'll rename "editor" to "body maker", since it's its real target. I'm working on a level editor too.

Anyway, thanks to you for this library, you really made 2d indie games enter a new area, that's something.
Hello!

Just to let you know, the tool has greatly evolved since first topic! It can now export to XML and JSON, in addition to the previously supported binary format. Therefore, writing custom loaders should now be really easy.

Project page: http://code.google.com/p/box2d-editor/
Changelog explanations: http://www.aurelienribon.com/blog/2011/ ... 2d-editor/

Image

Image

Image
Hello!

I updated the tool. This new update features big changes! New UI, but also an auto-trace tool, support for circle shapes, and custom position for the reference point!
Enjoy!

Project (binaries + sources): http://code.google.com/p/box2d-editor/
More information: http://www.aurelienribon.com/blog/2012/ ... -0-update/
Youtube demo: http://www.youtube.com/watch?v=KASY91EiTXQ


Image

Image----Image

Image----Image
Just wanted to let you know how amazing this is. This has helped me make huge progress on my games!

Can't express it enough. Easy, small, efficient and user friendly physics body design with fairly simple UI features, just friggen' amazing. Even has in house testing!

Thanks for developing this man. +1

PS: Had an idea, thought that maybe having a field for a gravity constant and direction could be amazing for testing/debugging, also the size of the balls you 'throw' being customizable could be helpful... But regardless, amazing stuff !
Thanks, it's always a pleasure to have such feedback 🙂
I considered a field for gravity. I think I may be able to add a "test params" label showing up when you select the test mode.
I also wanted to say thank you for this wonderful tool 🙂
basically I couldn't have made two of my games without it. thank you!
Hi!

Is this project still alive?
Good work done! I am really glad to land this page and get shared about the details of the new application. As it is Java edition and works with windows also, I can easily make use of this. The suggestion "body maker" is a good option.



Thanks
stopsnoringpro.com

Original thread: https://box2d.org/forum/viewtopic.php?t=7457