예제 #1
0
void
cpSpaceReindexStatic(cpSpace *space)
{
	cpAssertHard(!space->locked, "You cannot manually reindex objects while the space is locked. Wait until the current query or step is complete.");

	cpSpatialIndexEach(space->staticShapes, (cpSpatialIndexIteratorFunc)&updateBBCache, NULL);
	cpSpatialIndexReindex(space->staticShapes);
}
예제 #2
0
파일: cpSpace.c 프로젝트: wdmchaft/h5_drive
void 
cpSpaceReindexStatic(cpSpace *space)
{
	cpSpatialIndexEach(space->staticShapes, (cpSpatialIndexIteratorFunc)&updateBBCache, NULL);
	cpSpatialIndexReindex(space->staticShapes);
}
예제 #3
0
void SpatialIndex::reindex()
{
		cpSpatialIndexReindex(index);
}