The code you've got there is the standard way, and it doesn't cause any rotation. You might expect some from an explosion but it's not obvious how something should rotate. It depends quite a bit on the actual shape of the object.
Perhaps you should apply a force to each vertex of a polygon, instead of one to it's center. If the forces vary according to the individual distances, that should at least make things rotate in the right direction most of the time.
The "best" solution (i.e. most realistic) would be to create a large number of raycasts from the explosion point and apply a constant impulse for each raycast that hits an object. No radial falloff is necessarily needed, as you'll automatically get a 1/r falloff in 2D based on the spreading of the rays (in 3D you'd want a 1/r^2 falloff, so to simulate that in 2D you'll need to add an additional falloff to the impulse strength).
To go further, and get "pressure" effects (an explosion is more powerful per unit of area if it's completely enclosed), you'd want to bounce the rays after each hit, probably stopping after some distance to avoid infinite recursion.
Another refinement would be to add some friction to the impulse (rather than merely pushing against the normal, factor a small amount of tangent force).
This could be all add up to a pretty computationally intensive method, so I'm not sure if it's feasible in real time - maybe for an occasional explosion it could work, though. You'd have to play around, see if you can manage several dozen raycasts without a visual glitch. If you try this, make sure to bound the explosion by an AABB and only TestSegment against objects contained in that AABB, you definitely don't want to check each ray against the whole world.
I have just implemented reflecting laser beams (with non-infinite velocities) based on raycasts (each physics step, perform a ray cast from position to position + velocity * phys_timestep), and I am currently still using the naive check-against-all-bodies method to test for collisions. It runs remarkably fast but that is likely to change once the number of b2shapes increases. I can currently spawn 5000 light beams in an enclosed area, each traveling at over 500 units/sec velocity and not one collision with static bodies will be missed -- it runs at 30 frames per second.
This is interesting to me because I can easily simulate an explosion like ewjordan suggests by just using very slight modifications to my light beam code which is incredibly robust and hopefully decently fast once the testSegment code is optimized.
Also it seems to me that using a sort of ray-cast style device can help create something like a particle system effect, without requiring the instantiation of additional physics entities while still hopefully being able to query the physics state to enable collisions with geometry. So while an explosion is happening, a couple of extra "randomized" beams could be generated which might not necessarily generate any impulses but could be used to draw high speed "sparks". A gravity force can easily be incorporated as well.
this could also be great for drawing explosion effects which realistically reflect the shockwave as it reaches solid objects. Could make some very neat looking things with pixel shaders (I am writing some generalized code for converting texture data into per-pixel distortion values)
You COULD just let the physics engine handle it, and create a dozen or 2 dozen bodies at the explosion, distribute their initial impulses around a 360 circle, randomize body size and impulse within some reasonable range, and let the .... crap hit the fan.
After a few frames delete the objects.
Or, set the m_userData object to a class that has a method that gets stepped every frame, and after some frame count, have the bodies delete themselves.
I've done that in the past, it's pretty good since you get free "particle effects" by doing that, but the performance is kinda yucky. Plus there's the chance that there's a "hole" and your explosion might "miss" sometimes.
Wow, thats actually really clever and would probably be a good amount more efficient than ray tracing. Plus it wouldn't get less accurate with smaller objects (which might not end up lying in the path of a ray)