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/flight_altitude.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'crates/fparkan-runtime/src/flight_altitude.rs') diff --git a/crates/fparkan-runtime/src/flight_altitude.rs b/crates/fparkan-runtime/src/flight_altitude.rs index 4bf5f7a9..ca8c085e 100644 --- a/crates/fparkan-runtime/src/flight_altitude.rs +++ b/crates/fparkan-runtime/src/flight_altitude.rs @@ -5,13 +5,14 @@ use crate::EngineError; #[derive(Clone, Copy)] pub(super) struct FlightClearance { pub(super) body_radius: f32, + pub(super) height: f32, + pub(super) vertical_limit: f32, } impl FlightClearance { pub(super) fn raised(self, altitude: f32, ground: f32, speed: f32, seconds: f32) -> (f32, f32) { - // Keep approximately one radius of air under the hull, even when a - // parked actor starts on the surface. No descent is requested here. - let target = ground + 2.0 * self.body_radius; + let speed = speed.min(self.vertical_limit); + let target = ground + self.height; if target <= altitude || speed <= 0.0 { return (altitude, seconds); } -- cgit v1.2.3