diff options
| author | Valentin Popov <valentin@popov.link> | 2026-12-01 14:01:30 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-12-01 14:01:30 +0300 |
| commit | 85082a1c829050f375ad688d9ed563d753b3727b (patch) | |
| tree | 58137bbf74beccd37fefcb80accb366137c0f514 /crates/fparkan-runtime/src/route_motion.rs | |
| parent | 2dc43ad60e04922c630449f033f52e9e6839e2df (diff) | |
| download | fparkan-85082a1c829050f375ad688d9ed563d753b3727b.tar.xz fparkan-85082a1c829050f375ad688d9ed563d753b3727b.zip | |
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.
Diffstat (limited to 'crates/fparkan-runtime/src/route_motion.rs')
| -rw-r--r-- | crates/fparkan-runtime/src/route_motion.rs | 12 |
1 files changed, 10 insertions, 2 deletions
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 })); |
