The other day I wrote a tutorial on how to implement orbital / radial gravity with the use of Box2D and Cocos2D. I have decided to post the source code for this. You need to have Cocos2D and Box2D installed. Box2D comes packaged with the latest version if Cocos2D.

Download Source Code for this tutorial:
Radial Gravity Box2d & Cocos2d Example Source Code – 692k
Random Posts:
- SpaceBubble Code with Retina Support
- MacPaint Source Code Released
- Free iPhone 4 case program
- BASIC Compiler Open Sourced!
- New Chapter added to Our Story
If you found this useful, shoot me a small donation or at the very least leave a comment, every bit of encouragement helps keep me motivated to update with more content on a regular basis!
Tags: box2d, C++, cocos2d, code, iPhone, Objective-C, orbital gravity, radial gravity, tutorial, Xcode
You can skip to the end and leave a response. Pinging is currently not allowed.
[...] Nick Vellios wrote a series on adding radial gravity to Box2D. (h/t: [...]
hi i just download your source…but it is not working on last iOs…
thx