|
@@ -614,9 +614,15 @@ compare_collider_to_geom(CollisionEntry &entry, Geom *geom,
|
|
|
// triangle in the Geom.
|
|
// triangle in the Geom.
|
|
|
CollisionPolygon poly(coords[tris[i]], coords[tris[i + 1]],
|
|
CollisionPolygon poly(coords[tris[i]], coords[tris[i + 1]],
|
|
|
coords[tris[i + 2]]);
|
|
coords[tris[i + 2]]);
|
|
|
|
|
+ /*
|
|
|
if (entry.get_from()->test_intersection((*ci).second, entry, &poly) != 0) {
|
|
if (entry.get_from()->test_intersection((*ci).second, entry, &poly) != 0) {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
+ */
|
|
|
|
|
+
|
|
|
|
|
+ // Don't short-circuit the intersection test, as above, but
|
|
|
|
|
+ // instead keep testing until all the collisions are detected.
|
|
|
|
|
+ entry.get_from()->test_intersection((*ci).second, entry, &poly);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|