Box2d multiple fixtures and positioning
问题 I'm attempting to create a "U" shape in Box2d (in Cocos2d) by joining 3 rectangles like so: |_| It sounds like joints are not the correct solution here since I don't want any movement so I have created a main body which is the middle bit and 2 fixtures for the sides. I've added the two sides to the middle bit like this: mainBody->CreateFixture(&leftFixtureDef); mainBody->CreateFixture(&rightFixtureDef); This works, however both side fixtures get added to the center of the mainBody. I can't