Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Scheme

I want to create this type of fixture in one body. Here square and circle both are different fixtures but attach to one body. How do I do this?

share|improve this question
add comment

1 Answer

I'm not sure how this is done specifically in Objective-C, but in normal C++ Box2D you just need to call the method createFixture("Fixture") on the body two times, one with the characteristics of the square, and another with the circle. See the manual in http://www.box2d.org/manual.html#_Toc258082972.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.