* @param dt The amount of time that's passed since we last checked collision
* @return The number of points at which the two bodies contact
*/
public static int collide(Contact[] contacts, Body bodyA, Body bodyB, float dt)
{
Collider collider;
try {
collider = collFactory.createCollider(bodyA, bodyB);
} catch (ColliderUnavailableException e) {
System.out.println(e.getMessage()
+ "\n Ignoring any possible collision between the bodies in question");
return 0;
}
return collider.collide(contacts, bodyA, bodyB);
}