src/collisions/src/collision-handler.js
function checkThatNoObjectsCollide() {
  // Broad-phase collision detection (pairs whose bounding volumes intersect).
  let collisions = collidableStore.getPossibleCollisionsForAllCollidables();

  // Narrow-phase collision detection (pairs that actually intersect).
  collisions = _detectPreciseCollisionsFromCollisions(collisions);

  collisions.forEach(collision => {
    console.warn('Objects still intersect after collision resolution', collision);
  });
}
function checkThatNoObjectsCollide() {
  // Broad-phase collision detection (pairs whose bounding volumes intersect).
  let collisions = collidableStore.getPossibleCollisionsForAllCollidables();

  // Narrow-phase collision detection (pairs that actually intersect).
  collisions = _detectPreciseCollisionsFromCollisions(collisions);

  collisions.forEach(collision => {
    console.warn('Objects still intersect after collision resolution', collision);
  });
}
function checkThatNoObjectsCollide ( ) { // Broad-phase collision detection (pairs whose bounding volumes intersect). let collisions = collidableStore . getPossibleCollisionsForAllCollidables ( ) ; // Narrow-phase collision detection (pairs that actually intersect). collisions = _detectPreciseCollisionsFromCollisions ( collisions ) ; collisions . forEach ( collision => { console . warn ( 'Objects still intersect after collision resolution' , collision ) ; } ) ; }
Logs a warning message for any pair of objects that intersect.
Logs a warning message for any pair of objects that intersect .