I'm looking at the best way to detect when : let say 4 objects collide simultaneously. Two is easy but not sure how to implement with 3 and more.
Any idea ?
thanks
Chris
Multiple Objects Collisions
-
- Posts: 1
- Joined: Thu Jan 07, 2010 3:56 pm
- Contact:
- slembcke
- Site Admin
- Posts: 4166
- Joined: Tue Aug 14, 2007 7:13 pm
- Contact:
Re: Multiple Objects Collisions
This is a graph theory problem essentially. All of your objects that can collide are nodes of the graph, and all of the collisions are edges of the graph. What you want to do then is find the connected components of size 4 or greater.
http://en.wikipedia.org/wiki/Connected_ ... ph_theory)
http://en.wikipedia.org/wiki/Connected_ ... ph_theory)
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Who is online
Users browsing this forum: No registered users and 8 guests