Per-body gravity

Hi,

I'm busy making a game where you can mess around with gravity but I would like to change the gravity of a b2Body. (changing 1 b2Body would leave the others unaffected)

I suppose this would not be very hard to implement in Box2D, could you point me in the right way?
You can set the world gravity as a zero vector. After each time steps of the world, apply forces on the bodies at their centers of mass respectively by calling ApplyForce.

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