Original Post
Hi, so I'm writing a manager to regulate the checking and responding to collisions that occur in my application. The app will probibally feature quite an intensive set of collisions (basically it's a pile of spheres bouncing around inside a box, so theres a lot of colliding). I've reached a point where I'm not sure how to impliment the collision checking. I mean I have the algorithms to check of objects collide, but now i'm stuck on the 'when' element. If i have two collisions happening in the same frame, how do i know which one happens first? I think someone touched on this last time I asked a simmilar question, but wanted to start a new thread to tackle this issue specifically. I think i can poll object positions at the start of the frame and then again at the end. If they aren't colliding at the start but are at the end, obviously i have to respond this frame, but how to do two or more simultaneous collisions? I think (god i start a lot of sentences with that word...) it's something to do with finding the scale between the distance to the collision and distance moved, but i could be talking rubbish.