David Rose 24 лет назад
Родитель
Сommit
44a1eaf2f2
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      panda/src/collide/collisionTraverser.cxx

+ 6 - 0
panda/src/collide/collisionTraverser.cxx

@@ -614,9 +614,15 @@ compare_collider_to_geom(CollisionEntry &entry, Geom *geom,
         // triangle in the Geom.
         CollisionPolygon poly(coords[tris[i]], coords[tris[i + 1]],
                               coords[tris[i + 2]]);
+        /*
         if (entry.get_from()->test_intersection((*ci).second, entry, &poly) != 0) {
           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);
       }
     }
   }