Checking for collisions involving a single object
Posted: Mon Jun 04, 2007 12:51 am
Is there a way to check collisions again against a single collision object?
It occurs to me that the way I'm resolving collisions could cause additional collisions. For example, if in a single time step an object collides with 2 other objects, resolving the second collision could cause another collision with the first object (which had already been resolved). Ideally, I'd like to resolve any collisions for a single object and then recheck it to make sure the resolution hasn't caused more collisions without checking for collisions in the whole world again. Is there a way to do this?
Thanks.
It occurs to me that the way I'm resolving collisions could cause additional collisions. For example, if in a single time step an object collides with 2 other objects, resolving the second collision could cause another collision with the first object (which had already been resolved). Ideally, I'd like to resolve any collisions for a single object and then recheck it to make sure the resolution hasn't caused more collisions without checking for collisions in the whole world again. Is there a way to do this?
Thanks.