This project is read-only.

Body + Body

May 8, 2010 at 12:08 AM

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 8: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.