src/collisions/src/collision-handler.js
function _detectPreciseCollisionsFromCollisions(collisions) {
  return collisions.filter(collision => {
    // TODO:
    // - Use temporal bisection with discrete sub-time steps to find time of collision (use
    //       x-vs-y-specific intersection detection methods).
    // - Make sure the collision object is set up with the "previousState" from the sub-step
    //   before collision and the time from the sub-step after collision (determined from the
    //   previous temporal bisection search...)

    return detectIntersection(collision.collidableA, collision.collidableB);
  });
}
function _detectPreciseCollisionsFromCollisions(collisions) {
  return collisions.filter(collision => {
    // TODO:
    // - Use temporal bisection with discrete sub-time steps to find time of collision (use
    //       x-vs-y-specific intersection detection methods).
    // - Make sure the collision object is set up with the "previousState" from the sub-step
    //   before collision and the time from the sub-step after collision (determined from the
    //   previous temporal bisection search...)

    return detectIntersection(collision.collidableA, collision.collidableB);
  });
}
function _detectPreciseCollisionsFromCollisions ( collisions ) { return collisions . filter ( collision => { // TODO: // - Use temporal bisection with discrete sub-time steps to find time of collision (use //       x-vs-y-specific intersection detection methods). // - Make sure the collision object is set up with the "previousState" from the sub-step //   before collision and the time from the sub-step after collision (determined from the //   previous temporal bisection search...) return detectIntersection ( collision . collidableA , collision . collidableB ) ; } ) ; }
Narrow-phase collision detection.

Given a list of possible collision pairs, filter out which pairs are actually colliding.

@param {Array.<Collision>} collisions
@returns {Array.<Collision>}
@private
Narrow - phase collision detection .