Re:Box2D 3.0 Released
by bun_terminator on Monday August 12, 2024 @02:59AM
(#41221842)
Context: This is a widely used C++ library for 2D physics. It has always been super flexible/hackable, easy to setup and rock stable physics. Therefore a popular choice for games. Good to see that some of the code idiosyncrasies have disappeared (it had a lot of pointers and callbacks)
[ Parent
| on HN ]
Box2D has moved from C++ to C for this v3.0 release. Erin has explained why further down in the post:
https://box2d.org/posts/2024/08/releasing-box2d-3.0/#moving-...
Is it just me or does that section not really explain why?
The reasons given here felt more insightful to me: https://box2d.org/documentation/md_faq.html
> Box2D is designed to be portable and easy to wrap with other languages, so I decided to use C11. I used C11 to get support for atomics.