public override void UpdateTimeOfImpact(Collidable requester, float dt)
{
timeOfImpact = 1;
foreach (CollidablePairHandler pair in subPairs.Values)
{
//The system uses the identity of the requester to determine if it needs to do handle the TOI calculation.
//Use the child pair's own entries as a proxy.
if (BroadPhaseOverlap.entryA == requester)
pair.UpdateTimeOfImpact((Collidable)pair.BroadPhaseOverlap.entryA, dt);
else
pair.UpdateTimeOfImpact((Collidable)pair.BroadPhaseOverlap.entryB, dt);
if (pair.timeOfImpact < timeOfImpact)
timeOfImpact = pair.timeOfImpact;
}
}