src/systems/CollisionDetectionSystem.cpp
void CollisionDetectionSystem::testOverlap(OverlapCallback& callback) {

    NarrowPhaseInput narrowPhaseInput(mMemoryManager.getPoolAllocator(), mOverlappingPairs);

    // Compute the broad-phase collision detection
    computeBroadPhase();

    // Compute the middle-phase collision detection
    computeMiddlePhase(narrowPhaseInput, false);

    // Compute the narrow-phase collision detection and report overlapping shapes
    computeNarrowPhaseOverlapSnapshot(narrowPhaseInput, &callback);
}
// Report all the bodies that overlap (collide) in the world
Report all the bodies that overlap (collide) in the world
Report all the bodies that overlap ( collide ) in the world
void CollisionDetectionSystem::testOverlap(OverlapCallback& callback) {
    NarrowPhaseInput narrowPhaseInput(mMemoryManager.getPoolAllocator(), mOverlappingPairs);
    computeBroadPhase();
    computeMiddlePhase(narrowPhaseInput, false);
    computeNarrowPhaseOverlapSnapshot(narrowPhaseInput, &callback);
}
void CollisionDetectionSystem :: testOverlap ( OverlapCallback & callback ) { NarrowPhaseInput narrowPhaseInput ( mMemoryManager . getPoolAllocator ( ) , mOverlappingPairs ) ; computeBroadPhase ( ) ; computeMiddlePhase ( narrowPhaseInput , false ) ; computeNarrowPhaseOverlapSnapshot ( narrowPhaseInput , & callback ) ; }
Report all the bodies that overlap (collide) in the world
Report all the bodies that overlap ( collide ) in the world
// Compute the broad-phase collision detection // Compute the middle-phase collision detection // Compute the narrow-phase collision detection and report overlapping shapes