Hi I am using following function
cpSpaceAddCollisionHandler(space, 1, 2, NULL, &TankCollisionOccured, NULL, NULL, NULL);
to call the function "TankCollisionOccured" written bellow
static int TankCollisionOccured(cpShape *a, cpShape *b, cpContact *contacts, int numContacts, cpFloat normal_coef, void *data)
{
cpSpaceRemoveShape(space, a);
return 1;
}
in this function I am unable to use the space variable that have been defined in the .h file of my current game play class.
How can i access it. i have to destroy the "cpShape *a, cpShape *b" shapes actually.
thanks