src/systems/CollisionDetectionSystem.cpp
void CollisionDetectionSystem::testCollision(CollisionCallback& callback) {

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

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

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

    // Compute the narrow-phase collision detection and report contacts
    computeNarrowPhaseCollisionSnapshot(narrowPhaseInput, callback);
}
// Test collision and report contacts between each colliding bodies in the world
Test collision and report contacts between each colliding bodies in the world
Test collision and report contacts between each colliding bodies in the world
void CollisionDetectionSystem::testCollision(CollisionCallback& callback) {
    NarrowPhaseInput narrowPhaseInput(mMemoryManager.getPoolAllocator(), mOverlappingPairs);
    computeBroadPhase();
    computeMiddlePhase(narrowPhaseInput, true);
    computeNarrowPhaseCollisionSnapshot(narrowPhaseInput, callback);
}
void CollisionDetectionSystem :: testCollision ( CollisionCallback & callback ) { NarrowPhaseInput narrowPhaseInput ( mMemoryManager . getPoolAllocator ( ) , mOverlappingPairs ) ; computeBroadPhase ( ) ; computeMiddlePhase ( narrowPhaseInput , true ) ; computeNarrowPhaseCollisionSnapshot ( narrowPhaseInput , callback ) ; }
Test collision and report contacts between each colliding bodies in the world
Test collision and report contacts between each colliding bodies in the world
// Compute the broad-phase collision detection // Compute the middle-phase collision detection // Compute the narrow-phase collision detection and report contacts