Custom physics interactions

Roughly how difficult would it be for someone to add support for a new type of object, perhaps one simulated outside the Box2d engine altogether? In particular I was thinking about things like particles, liquids, and ropes - supposing you had an external engine to do the independent simulations for these things, would it be possible to hook that up to Box2d so that you could have interactions with the other physics objects?

At the least I'm sure you'd need collision handling routines for each pair of shape types, impulse callbacks, and bounding box calculations. Would that be enough, though, or would it still take a major re-working of the Box2d engine itself?
In many game systems the cloth is a parallel system that cannot influence the rigid bodies.

Usually cloth is attached to a skinned character that is driven by an animation or a ragdoll. Further the cloth often doesn't collide with the rigid bodies, but with special collision placed on the character bones.

For two-way interaction the best approach is to provide these systems inside the engine. This is feasible, but a sizeable piece of work.
@ewjordan:

If you haven't already, take a look at BorisTheBrave's b2ConcaveArcShape: viewtopic.php?f=8&t=267

You can see which files he had to change and everything.

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