Hierarchical Connection Between Bodies

Hi,

I have a arbitrarily deep tree structure of bodies. When a parent body collides with anything, it should move its children along. On the other hand, if the child is moved due to a collision, the parent should not be touched. One body can be a parent to one body and a child to another at the same time.

Is there a way to implement this in Box2D? None of the joints seem to be able to represent this, since they're all symmetrical.

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