Body + Body

May 7, 2010 at 11:08 PM

I have 2 bodies of my game hero (head and body) head is a class with b2Body , body is a class with b2Body too. How can I connect head to body? I try to use DistanceJoint but in this case head can move. I want rigidly connect b2Body to b2Body. How can I do this?

May 8, 2010 at 7:25 PM

You should try a weld joint or a revolute joint.

If you want them to truely be stuck together without motion between them, then you should probably be using fixtures for each of your body parts and then make a single body with multiple fixtures.