Hi, I have a simple question: Is there way to make non-convex shape in Box2D? I have world model descibed in XML by number ov vertex of polygons, there're lots of non-convex ones. What should I do with em? Devide?
non-convex
Games and ApplicationsPretty much, yeah. You can compose non-convex shapes out of convex polygons. There are a few algorithms to produce such polys floating around the forum.
Or, you can use b2ShapeEdges, in the SVN, if you just need it for static ground.
Or, you can use b2ShapeEdges, in the SVN, if you just need it for static ground.
I've found b2EdgeShape in SVN. It's seems, that it's all, that I need, but b2Shape can't construct shapes by b2EdgeChainDef. So I can't construct any shape of such type. Can anybody help me?
Original thread: https://box2d.org/forum/viewtopic.php?t=2884