Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Collision detection for more than two objects?  (Read 1699 times)

0 Members and 1 Guest are viewing this topic.

KasHKoW

  • Newbie
  • *
  • Posts: 41
    • View Profile
Collision detection for more than two objects?
« 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?

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Collision detection for more than two objects?
« Reply #1 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...
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

KasHKoW

  • Newbie
  • *
  • Posts: 41
    • View Profile
Collision detection for more than two objects?
« Reply #2 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.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Collision detection for more than two objects?
« Reply #3 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 ;)
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development: