// Transformation function for contactSet.
static void *
contactSetTrans(void *ptr, void *data)
{
	cpShape **shapes = (cpShape **)ptr;
	cpShape *a = shapes[0];
	cpShape *b = shapes[1];
	
	cpSpace *space = (cpSpace *)data;
	
	return cpArbiterNew(a, b, space->stamp);
}
Beispiel #2
0
// Transformation function for contactSet.
static void *
contactSetTrans(cpShape **shapes, void *unused)
{
	return cpArbiterNew(shapes[0], shapes[1]);
}