Box2D Interactive Cogs
by: John A Casey • 5
Technical demonstration of how to use JBox 2D with Android's SurfaceView provides an example of how to use Revolute Joints and how to translate touch screen events into physical interactions within the Box 2D game world. Select a cog by tapping objects on screen. Make the cog rotate using a sweeping motion with one finger. The faster the sweeping gesture the faster the cogs will spin. This application is not a game but a technical demonstration of what is possible with Box2D and Android.
You can find the public GIT repository for this code here: https://github.com/jacasey/box2d-cogs