engine/physics/src/physics/physics.cpp
/**
     * Remove the overlap of an object from an entry.
     */
Remove the overlap of an object from an entry.
Remove the overlap of an object from an entry .
static void RemoveOverlap(OverlapEntry* entry, void* object)
    {
        uint32_t count = entry->m_OverlapCount;
        for (uint32_t i = 0; i < count; ++i)
        {
            Overlap& overlap = entry->m_Overlaps[i];
            if (overlap.m_Object == object)
            {
                overlap = entry->m_Overlaps[count-1];
                --entry->m_OverlapCount;
                return;
            }
        }
    }
static void RemoveOverlap ( OverlapEntry * entry , void * object ) { uint32_t count = entry -> m_OverlapCount ; for ( uint32_t i = 0 ; i < count ; ++ i ) { Overlap & overlap = entry -> m_Overlaps [ i ] ; if ( overlap . m_Object == object ) { overlap = entry -> m_Overlaps [ count - 1 ] ; -- entry -> m_OverlapCount ; return ; } } }
Remove the overlap of an object from an entry.
Remove the overlap of an object from an entry .