Comparison

Hello all!
Great great engine, I'm really impressed by the demos! So congrats to the team.
I was wondering, what would you say are the advantages/differences between Box2D and the other main engine like Ape and Fisix? I suppose it's an annoying question, but i'm quite curious.
Thanks!
You can see the features of Box2D here: http://www.box2d.org/features.html

I glanced quickly at those other engines. The main difference appears to be that Fisix and APE use particles while Box2D use rigid bodies. Of course particle engines can simulate rigid bodies by combining particles, using fat particles, etc.

I encourage you to try all the engines a bit and see which better suits your needs.
The most similar engine I've seen is Chipmunk, which is also a rigid-body 2D simulator. The author even says that he got some algorithms from Box2D.

I haven't compared the specifics of features or performance; but at a high level:
Chipmunk has the advantage of already having official Mac and Linux support. (Though this should be coming to Box2D in the next release, hopefully.)
It has the disadvantage of a procedural C-based API. (Though C++ haters might consider that an advantage!)

Oh, I did just remember one feature difference: Chipmunk has collision-detection callbacks. This simplifies client code, and also lets you customize, like for example deciding on a case-by-case basis to ignore particular collisions.
I looked at Chipmunk, but it's written in C99. A poor choice, considering Microsoft's C compiler doesn't support C99 at all and it only has minor advantages. Someone got it working, but there are some horrible hacks in there I think. For example, Chipmunk uses dynamic array allocation (allocating a stack array with a non-const variable), which are replaced with malloc calls. That's bound to be slow and introduce memory leaks. Chipmunk looked nice, but I couldn't check it out in depth.
snej: Box2D is setup to provide all contact results at any point after the time step. So for example, any part of the game code can ask what bodies are touching a given body and look at the impulses, penetrations, normals, etc. You can see this in the collision processing test. Box2D also uses deferred body deletion. So you can delete bodies while processing contacts without creating orphaned pointers.

For collision filtering Box2D provides categories and groups. I will add a collision filter callback to allow for custom filtering.

Original thread: https://box2d.org/forum/viewtopic.php?t=123