示例#1
0
// 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);
}
示例#2
0
文件: cpSpace.c 项目: ShariqM/Game
// Transformation function for contactSet.
static void *
contactSetTrans(cpShape **shapes, void *unused)
{
	return cpArbiterNew(shapes[0], shapes[1]);
}