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?
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It only takes a minute to sign up.Sign up to join this community
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.