suppose I create two box2d bodies with their shapes and definition, also set their position, now at any point of time I want to check if they overlap or collide, how can I do this, please help!
i create a body like this
ballBodyDef.type = b2_dynamicBody;
ballBodyDef.userData = ball;
ballShapeDef.shape = &ballShape;
ballShapeDef.density = 10.0;
ballShapeDef.isSensor = true;