how to use box2d ?
dose anyone have tutorials or some suggestions about how to use box2d ? like make user's own shape?
this is the download address: http://charles.bascou.free.fr/box2d/
i would recommend using the jit.phys externals for this. search for the phys.world.2D example patch for an example of using jit.phys.world in 2D mode. also check here: https://cycling74.com/tutorials/introduction-to-jit-phys-part-1
I am looking for a way to use custom 2d polygon meshes in jit.phys.world, such as the gear in this example: https://libgdxinfo.wordpress.com/box2d-importing-complex-bodies/
Here's a basic example using the starfish.obj as your gear. The key for 2D is the remove_plane message to a phys.world

That has already helped me a lot, thank you very much.
Unfortunately, I am now stuck with the problem of creating different polygons in any number that behave physically. It seems logical to me that only the last mesh data sent to jit.phys.body are handled, although all others are rendered.
What is the best way to insert different shapes of any number into the physical 2D world?
you'll need a jit.phys.body for each shape you want in the world. you can use a poly~ abstraction if you want that dynamic, or better yet some simple javascript gives you so much flexibility.

Thanks Rob, that's exactly what I needed.
Hopefully my last question: is there an example of how to subdivide (concave) polygons to fill them properly?