It's been a long time, but I finally gritted my teeth and ported my old code to Box2DAS3 2.0. It's an extensive patch to Box2D to add a 3rd shape type, which allows you to do circular arcs that bend inwards. Demo available here.
The 2.0 version supports most of the new features, and should work fine with CCD. It has a slightly changed framework in place for adding further shapes (specifically b2Distance.Distance now has an array lookup rather than a series of ifs), so I recommend if you are also adding a shape you start from this patch.
The biggest outstanding issue is that concave arcs do not collide with each other. I find this code too hard to write (at least, using solid shapes rather than thin arcs, which are simpler), but last time people reassured me they mainly wanted such shapes for static scenery, so this isn't a huge problem. Masses are not calculated correctly either.
It's still a bit buggy, though. Specifically, when I pull objects against a static concave arc, and then slide them over one of the two vertices at the ends of the arc, you sometimes see 'popping'. I think it's some warm starting issue, but I cannot reproduce it reliably, so if you can, let me know. Also, I haven't written TestSegment code, though this is rather trivial compared with the rest. Hence I've only provided a patch rather than a full download. That way, only the savvy types will download it, and we won't have buggy versions circulating after things are fixed.
USAGE
b2ConcaveArcShape
This shape can represent any polygon with a circle subtracted from it. It works exactly the same as b2PolygonShape, except the edge from vertex 0 to vertex 1 is a concave arc, with radius given by the radius property. The diameter should be longer than the distance between the vertices, and the rest of the polygonal shape should be large enough to enclose the resulting curve (this is not checked).
The 2.0 version supports most of the new features, and should work fine with CCD. It has a slightly changed framework in place for adding further shapes (specifically b2Distance.Distance now has an array lookup rather than a series of ifs), so I recommend if you are also adding a shape you start from this patch.
The biggest outstanding issue is that concave arcs do not collide with each other. I find this code too hard to write (at least, using solid shapes rather than thin arcs, which are simpler), but last time people reassured me they mainly wanted such shapes for static scenery, so this isn't a huge problem. Masses are not calculated correctly either.
It's still a bit buggy, though. Specifically, when I pull objects against a static concave arc, and then slide them over one of the two vertices at the ends of the arc, you sometimes see 'popping'. I think it's some warm starting issue, but I cannot reproduce it reliably, so if you can, let me know. Also, I haven't written TestSegment code, though this is rather trivial compared with the rest. Hence I've only provided a patch rather than a full download. That way, only the savvy types will download it, and we won't have buggy versions circulating after things are fixed.
USAGE
b2ConcaveArcShape
This shape can represent any polygon with a circle subtracted from it. It works exactly the same as b2PolygonShape, except the edge from vertex 0 to vertex 1 is a concave arc, with radius given by the radius property. The diameter should be longer than the distance between the vertices, and the rest of the polygonal shape should be large enough to enclose the resulting curve (this is not checked).