intersectionTest method
Check if the bounding volumes of two bodies intersect.
Implementation
void intersectionTest(Body bodyA, Body bodyB, List<Body> pairs1, List<Body> pairs2) {
if (useBoundingBoxes) {
doBoundingBoxBroadphase(bodyA, bodyB, pairs1, pairs2);
} else {
doBoundingSphereBroadphase(bodyA, bodyB, pairs1, pairs2);
}
}