Here is the source code to a tutorial I wrote on how to implement radial gravity with Box2D:
http://www.vellios.com/2010/06/06/box2d-and-radial-gravity-code/
I hope my fellow game developers can find some use with it. I had a hard time figuring it out, even though it was ridiculously simple in the end.
http://www.vellios.com/2010/06/06/box2d-and-radial-gravity-code/
I hope my fellow game developers can find some use with it. I had a hard time figuring it out, even though it was ridiculously simple in the end.