I have one shape when it touches another collision detection should happen, for that i need to draw b2Polygon shape in xcode. I need proper vertices to draw this shape in iPhone. Can anyone please help me how to do that?
Thank you,
Anks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is debug draw in box2d. See any example of box2d testbed coming with cocos2d. That’s if you want your b2Shapes to be drawn.