I am adding a b2BodyDef to my CCScene like so:
b2BodyDef platformBodyDef;
platformBodyDef.type = b2_dynamicBody;
platformBodyDef.position.Set(40, 495);
platformBodyDef.userData = platforms;
_body = _world->CreateBody(&platformBodyDef);
I know I am supposed to use contact listeners but I am new to Box2D and this is like another language to me so how would I code it to see if one of the CCSprites in my CCScene collides with this b2BodyDef? This b2BodyDef will be animating but I am not worrying about that right now. Does anyone know how I can do this?
Thanks!