geometryClassifiers.add(new ContactGeneratorClassifier() {
@Override
public final ContactGenerator getGenerator(Geometry a,
Geometry b) {
if ( a instanceof jinngine.geometry.Sphere && b instanceof jinngine.geometry.Sphere) {
return new SphereContactGenerator((jinngine.geometry.Sphere)a, (jinngine.geometry.Sphere)b);
}
//not recognised
return null;
}
});