Using b2PolygonDef to a smoothed Rectangle

Hi everyone!

I just have a simple question since it's my first time using Box2D, in flash.

I have the image that I updated and I have this:
Code:
var platformShapeDef:b2PolygonDef = new b2PolygonDef();


but I need to add vertices, but doing it manually seems like a lot of work...


Any ideas?

thanks!!
I'd suggest making it out of three shapes (bodies can be made up of multiple shapes). Two circles for then ends & a rectangle for the main section. Much simpler than working out all the points. Let me know if that doesn't make sense.
Yeap...that's one way I didn't think of 😛

Thanks!!

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