The 2.1 API is becoming a bit burdensome. My main metric for quality of an API is number of calls required to do anything.
My two main complaints are: b2BodyDef::type and b2World::ResetForces.
These are now more or less mandatory, but they've only been added to support extra features. I would much prefer to see reasonable defaults, and a way to opt in to more advanced behaviour. Not only does it neaten up code, but it lowers the bar to entry, as there's less stuff to understand to get a working game.
In the case of ResetForces, this is clear - b2World should have a flag AutoResetForces or something, on by default. As most users don't want to use, or even know, about this feature.
Body types is harder, but I'd still like to see it infer something from the density of fixtures. Because the majority of users will be satisfied with the positive mass == dynamic scheme. Again, a flag to turn this off seems the simplest solution (with SetType automatically disabling the flag).
My two main complaints are: b2BodyDef::type and b2World::ResetForces.
These are now more or less mandatory, but they've only been added to support extra features. I would much prefer to see reasonable defaults, and a way to opt in to more advanced behaviour. Not only does it neaten up code, but it lowers the bar to entry, as there's less stuff to understand to get a working game.
In the case of ResetForces, this is clear - b2World should have a flag AutoResetForces or something, on by default. As most users don't want to use, or even know, about this feature.
Body types is harder, but I'd still like to see it infer something from the density of fixtures. Because the majority of users will be satisfied with the positive mass == dynamic scheme. Again, a flag to turn this off seems the simplest solution (with SetType automatically disabling the flag).