Space-efficient data structures for broad-phase collision detection
- by Marian Ivanov
As far as I know, these are three types of data structures that can be used for collision detection broadphase:
Unsorted arrays: Check every object againist every object - O(n^2) time; O(log n) space. It's so slow, it's useless if n isn't really small.
for (i=1;i<objects;i++){
for(j=0;j<i;j++) narrowPhase(i,j);
};
Sorted arrays: Sort…