Detecting and filtering collisions

If we start the game right now and don't move the hunter, the stone will fall straight on his head. As we're not creating a game about some superhero, this should lead to some bad consequences for the hunter.

To be able to react to the stone falling on the hunter's head, we need to detect the collision between the hunter and the stone. Fortunately, it is quite easy to do so.

Get Learning iPhone Game Development with Cocos2D 3.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.