Mirroring a group of bodies?

I have a group of connected bodies in Box2D, which makes up a ragdoll. Does anyone know how to flip the whole body, so it acts like it's facing the opposite direction?
There is no support for this kind of stuff in Box2D itself, so you'll need to iterate over the bodies, then iterate over their fixtures, then iterate over their vertices, mirror them, create the bodies as necessary. Then send the code to me 😀

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