Box2D Hierarchical Connection Between Bodies

Viewed 286

I have a arbitrarily deep tree structure of bodies in box2d. 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.

1 Answers
Related