Physics Body Editor for Defold (Polygon Editor)

[Deprecated] I’m not planning to update it.

I was in research for one of our game prototype which requires custom collision shapes. I came across the Physics Body Editor was originally developed by Aurelien Ribon. But its internal system was designed to use with libGDX. So I decided to make my own exporter for Defold build top on the editor.

This is the modified version of Physics Body Editor for Defold Game Engine compatibility. I made a lots of breaking changes, improvements, added new functionalities and bug fixes.

Download

More info and manual is available here:
https://selimanac.github.io/physics-body-editor/

P.s. I wish we will have rigid bodies in the editor someday. We can combine shapes and use them as dynamic bodies.

Features

  • Convex shape file generation
  • GameObject file generation
  • Pivot point
  • Grids and snap
  • Multiple shapes in same body

Tutorial video

Release Notes

1.5.0

  • All dependencies updated.
  • New dark theme GUI.
  • New coordinate system.
  • New zoom level and pivot(origin) functionallties.
  • Defold Exporter with .convexshapes and .go files.
  • Lots of major & minor bugs fixed.

Source code is available on Github

selimanac/physics-body-editor - GitHub

17 Likes

Ideally this is something that would be great to add as a builtin editor feature. To use sprites as references, and make physics shapes based on them that can then be used.

7 Likes

Something where you could start with a triangle then add and drag vertices over a sprite or model would be ideal for me. Less Atlas texture space and more fine tuned control.