/// <summary> /// Called when the spatial partition detected that an old overlap was removed. /// </summary> /// <param name="overlap">The overlapping pair of collision objects.</param> void IBroadPhase <CollisionObject> .Remove(Pair <CollisionObject> overlap) { var contactSet = CandidatePairs.Remove(overlap); if (contactSet != null) { _obsoleteContactSetList.Add(contactSet); } }
/// <summary> /// Called when the spatial partition detected that a collision object was removed. /// </summary> /// <param name="collisionObject">The collision objects to remove.</param> void IBroadPhase <CollisionObject> .Remove(CollisionObject collisionObject) { CandidatePairs.Remove(collisionObject, _obsoleteContactSetList); }