* @throws ColliderUnavailableException
* This exception will be thrown if no suitable collider can be found.
*/
public Collider createCollider(PhysicsAgent2D<?> bodyA, PhysicsAgent2D<?> bodyB)
throws ColliderUnavailableException {
Shape shapeA = bodyA.getBodyShape();
Shape shapeB = bodyB.getBodyShape();
if ( shapeA instanceof Circle ) {
return createColliderFor((Circle) shapeA, shapeB);
} else if ( shapeA instanceof Box ) {
return createColliderFor((Box) shapeA, shapeB);