static void
cpSpacePushNewContactBuffer(cpSpace *space)
{
	cpContactBufferHeader *buffer = cpSpaceGetFreeContactBuffer(space);
	space->contactBuffersHead->next = buffer;
	space->contactBuffersHead = buffer;
}
Exemplo n.º 2
0
static void
cpSpacePushNewContactBuffer(cpSpace *space)
{
//	for(cpContactBuffer *buffer = space->contactBuffersTail; buffer != space->contactBuffersHead; buffer = buffer->next){
//		printf("%p -> ", buffer);
//	}
//	printf("%p (head)\n", space->contactBuffersHead);
	
	cpContactBufferHeader *buffer = cpSpaceGetFreeContactBuffer(space);
	space->contactBuffersHead->next = buffer;
	space->contactBuffersHead = buffer;
}