From 0fade3cf1100f9122d104f69d9cce2efc6306279 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Nov 2026 10:01:44 +0400 Subject: feat(factory): release assembled warbots above the roof Find the factory roof with a vertical ray, apply the native height offsets, and keep the departure task active through descent and apron clearance. Verify both stock Two Fortresses factories and transport delivery, and check the descent in a fixed-camera Vulkan run. --- crates/fparkan-runtime/src/route_obstacles.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'crates/fparkan-runtime/src/route_obstacles.rs') diff --git a/crates/fparkan-runtime/src/route_obstacles.rs b/crates/fparkan-runtime/src/route_obstacles.rs index 1ee46c7c..eb29b680 100644 --- a/crates/fparkan-runtime/src/route_obstacles.rs +++ b/crates/fparkan-runtime/src/route_obstacles.rs @@ -64,8 +64,17 @@ impl BuildingFootprints { } pub(super) fn with_clearance(&self, radius: f32) -> Vec { + self.with_clearance_except(radius, None) + } + + pub(super) fn with_clearance_except( + &self, + radius: f32, + skip: Option, + ) -> Vec { self.entries .values() + .filter(|(handle, _, _)| Some(*handle) != skip) .filter_map(|(_, _, footprint)| footprint.map(|bounds| bounds.expanded(radius))) .collect() } -- cgit v1.2.3