Search code examples
iphoneipadcocos2d-iphonecollision-detectionchipmunk

Chipmunk for Cocos2D, Collision Detection - Best Practice?


I'm using Chipmunk physics and want to do collision detection to find out when 2 cpBodies collide. I've got some questions;

  • Could you give me an example of using cpCollPairFunc or cpSpaceAddCollisionHandler ?
  • I've seen around the rectangle intersection; is that possible for polygons?
  • Should I use another library (SpaceManager or whatever) on top?

Thank you!

F.


Solution

  • Joe thank you for your response; Corona is not freeware isn't it.

    The saviour at the end was: http://www.cocos2d-iphone.org/forum/topic/9425 and the cpSpaceAddCollisionHandler method.