Shape maker for Box2D

Hello everyone,

I've been learning Box2D for the last week or so, and I'm really enjoying the possibilities of this engine!

Anyway; I've started making a game, and i need some complex shapes, but it seems just about impossible for me to make the vertices arrays when the shapes gets just a little more complex than a rectangle. I've tried out the ShapeForBox2D.jsfl command, which is exactly what I'm looking for. However, it doesn't decompose the shapes exact enough, with which I mean that the shapes gets way too simplified.

So my question is, if there's a way to make ShapeForBox2D spit out more detailed vertices or if another app/script exists that could do the work?

Best regards!
It splits them out exactly, just converts curves to straight lines. You can split curves manually using the Flash editor - either the pen tool to insert points, or Straighten.. with the right settings.
Thanks for the quick reply! But, alright, I think i misunderstood something. But now im having another problem, the script times out when i try to decompose a frame-like shape like the one below. Any ideas why?
Image

I tried making corners as well, connecting the corners to make four trapez shapes, but I still got a timeout.
Figured it out, I just cut off the top 🙂 seems pretty logical as well that it didnt work as it was like a shape in a shape.

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