As promised, here is another tutorial by Ray Wenderlich, ported to Android. The original tutorial can be found at: http://www.raywenderlich.com/606/how-to-use-box2d-for-just-collision-detection-with-cocos2d-iphone Note that this tutorial has also been modified to remove irrelevant content.
When making a game with Cocos2D, sometimes you may find yourself wanting to use Cocos2D actions to move your objects instead of using the Box2D physics engine. However that doesn’t mean you can’t still make use of the great collision detection support in Box2D!
This tutorial will show you how to use Box2D for just collision detection – not physics – step by step. We will create a simple demo of a car driving around the screen, laughing merrily as it runs over cats. While we’re doing this, along the way we’ll also cover the use of sprite sheets.
Continue reading →