I'm using Box2D
quite a lot in my projects and it does the job pretty well except that it indeed lacks of objects pooling system since the original code base is coming from C / C++ world and leveraging on struct
data structure (though copy by value). Concretely, this generates noticeable lags time to time when the garbage collector does some cleaning (lots of objects such as b2Vec2 are created behind the scene during simulation step).
If you give a try to Box2D
, I highly recommend you to have a look to those two websites to understand the base concepts of it:
I didn't tried Nape
so far, so I cannot judge it but it looks really nice and it has been especially designed for AS3
/ Haxe
ecosystems. I just have too much stuff running on Box2D
to switch now... 😅
A big advantage of using Box2D
for me is the fact that it is available on many platforms, so if one day you need to migrate, you will likely be able to re-use what you have done so far.
hardcoremore Thanks a lot for sharing! I will definitively have a look to your version, I was looking for that since a long time now 😃