2D collision detection: Performance by indexing in a grid
Indexing is a great way to imrpove the performance of your collisions detection. If you have a lot of object that can collide with each other, it's good to have an index so you don't have … more