From 85082a1c829050f375ad688d9ed563d753b3727b Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Tue, 1 Dec 2026 15:01:30 +0400 Subject: feat(movement): migrate animals between authored sites Select shared migration sites on the ArealMap cadence and feed them to the common route follower with the animal flight clearance and Control climb limit. In The Constructor, both medusas lift off and travel around the selected site from their stock positions. The window showed the change at a fixed viewpoint with clean Vulkan validation. Path details and threat acquisition remain approximate. --- crates/fparkan-runtime/src/route_motion.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'crates/fparkan-runtime/src/route_motion.rs') diff --git a/crates/fparkan-runtime/src/route_motion.rs b/crates/fparkan-runtime/src/route_motion.rs index 5ebaae78..8428d386 100644 --- a/crates/fparkan-runtime/src/route_motion.rs +++ b/crates/fparkan-runtime/src/route_motion.rs @@ -165,7 +165,11 @@ mod tests { let start = TransformState::default(); let mut route = VecDeque::from([[0.0, 8.0]]); let clearance = RouteClearance { - flight: Some(FlightClearance { body_radius: 1.0 }), + flight: Some(FlightClearance { + body_radius: 1.0, + height: 2.0, + vertical_limit: f32::INFINITY, + }), ..Default::default() }; let flat = |_| Ok(Some(0.0)); @@ -183,7 +187,11 @@ mod tests { }; let mut route = VecDeque::from([[0.0, 10.0]]); let clearance = RouteClearance { - flight: Some(FlightClearance { body_radius: 1.0 }), + flight: Some(FlightClearance { + body_radius: 1.0, + height: 2.0, + vertical_limit: f32::INFINITY, + }), ..Default::default() }; let ground = |[_, y]: [f32; 2]| Ok(Some(if (3.0..5.0).contains(&y) { 4.0 } else { 0.0 })); -- cgit v1.2.3