public void CleanOverlappingPair(BroadphasePair pair, IDispatcher dispatcher) { if (pair.m_algorithm != null) { dispatcher.FreeCollisionAlgorithm(pair.m_algorithm); pair.m_algorithm = null; } }
public void CleanOverlappingPair(BroadphasePair pair, IDispatcher dispatcher) { if (pair.m_algorithm != null) { { dispatcher.FreeCollisionAlgorithm(pair.m_algorithm); pair.m_algorithm = null; OverlappingPairCacheGlobals.gRemovePairs--; } } }
public void CleanOverlappingPair(BroadphasePair pair, IDispatcher dispatcher) { if (pair.m_algorithm != null) { { pair.m_algorithm.Cleanup(); dispatcher.FreeCollisionAlgorithm(pair.m_algorithm); pair.m_algorithm = null; OverlappingPairCacheGlobals.gRemovePairs--; } } }