SFML community forums

Help => Graphics => Topic started by: KasHKoW on August 10, 2011, 10:14:04 pm

Title: Collision detection for more than two objects?
Post by: KasHKoW on August 10, 2011, 10:14:04 pm
How would I make a collision detection for 2d objects for more than 2 objects.

As in 3 object collision or possibly more?
Title: Collision detection for more than two objects?
Post by: Nexus on August 10, 2011, 10:14:41 pm
Pairwise?

If there are many objects (100 are not many), then testing collision for every pair of objects is not efficient. We have already discussed that here (http://www.sfml-dev.org/forum/viewtopic.php?t=5373)...
Title: Collision detection for more than two objects?
Post by: KasHKoW on August 10, 2011, 10:28:11 pm
I know it's not efficient that's why i posted the question. What I want to know is how to detect collision with more than two objects all at the same time... Rather if it's a thousand or 3.
Title: Collision detection for more than two objects?
Post by: Nexus on August 10, 2011, 10:31:11 pm
As I said, we've recently had that discussion. Read the linked thread, then you can still ask more specific questions ;)