I know that there is a lot of information on collisions in these forums, but I can't seem to find anything which addresses my particular query. I hope that some of you out there will be able to help.
From what I've read, and have found by experimenting, for any collision between two spheres, the contents of the collision table indexed by CountCollisions(entity) seems to vary depending upon the circumstances of the collision. i.e whether both objects are travelling in opposing directions, both in the same direction but at differing speeds, or if either is stopped.
Sometimes there seem to be multiple entries for the same entity, I guess if there have been multiple collisions within a single UpdateWorld.
It appears that once a collision has happened, there may be one, two or even more entries in the collision table for the same event. I know that if these were collisions with infinite mass objects, this would probably not matter since the rebounds of each can be calculated from the collision normals for each, but if one is trying to handle the momentum properly, collecting all entries which relate to the same event seems to be tricky, to say the least.
Am I understanding things properly, and is there an 'approved' method of linking up these entries, or am I missing something and in reality its all extremely easy?
From what I've read, and have found by experimenting, for any collision between two spheres, the contents of the collision table indexed by CountCollisions(entity) seems to vary depending upon the circumstances of the collision. i.e whether both objects are travelling in opposing directions, both in the same direction but at differing speeds, or if either is stopped.
Sometimes there seem to be multiple entries for the same entity, I guess if there have been multiple collisions within a single UpdateWorld.
It appears that once a collision has happened, there may be one, two or even more entries in the collision table for the same event. I know that if these were collisions with infinite mass objects, this would probably not matter since the rebounds of each can be calculated from the collision normals for each, but if one is trying to handle the momentum properly, collecting all entries which relate to the same event seems to be tricky, to say the least.
Am I understanding things properly, and is there an 'approved' method of linking up these entries, or am I missing something and in reality its all extremely easy?