Keep the cart and its box apart in detector_rail_signal

This commit is contained in:
Kacpherek
2026-10-28 07:07:43 +01:00
parent 5b13af2f75
commit 6960b65c62
+2 -2
View File
@@ -738,11 +738,11 @@ impl GameLevel<'_> {
);
let mut container = None;
for ((lo, hi), cart) in self.cart_boxes.iter().zip(self.carts) {
let cart = Aabb::new(
let bounds = Aabb::new(
Vec3::new(lo[0], lo[1], lo[2]),
Vec3::new(hi[0], hi[1], hi[2]),
);
if !area.intersects(cart) {
if !area.intersects(bounds) {
continue;
}
match cart.kind {