Moving a group of object together

Hey

I was wondering how I would go about doing this:

I have a number of objects, which can be selected, and more than one can be selected. My objects can move, rotate etc. when dragged, but when more than one object is selected then all objects must move with the one being dragged.

Got any good ideas? I've tried distance joining them all to the dragged object but they kept on swinging around very annoying. Perhaps to lock rotation of the joint? I can't seem to find that. I tried multiple mouse joints as though there was a mouse dragging each object, but I could get that right. I also tried distance joining ALL of them to ALL of them, but that turned into a mess... So I need a clean way of doing this.

Thanks

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