For a Cocos2d based project, I’d like to use a physics toolkit for collision detection only. What are the pros/cons of using Chipmunk or Box2d?
Share
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.
What kind of collisions are we talking about?
If all you need are these:
Then you don’t need a physics engine at all, and you don’t have to write your own collision detection algorithms either.
Chipmunk and Box2D handle collisions equally well. I’m of the opinion that if one is asking “which is better” it’s not going to matter for you. Instead, ask yourself whether you’re more comfortable working with C (Chipmunk) or C++ (Box2D).
Similarly, do you prefer working with an object-oriented, verbose API (Box2D) or a functional, highly abbreviated API (Chipmunk)?
Base your decision on what makes it easier for you to work with rather than some arbitrary, undefined, and highly subjective idea of whether one physics engine might be better than the other, because the technical differences are marginal and you can only assess their influence on your game’s design if you both know your own game design and the physics engines internal algorithms really well.