From 4e4a0795fccbcc4a2dd2f4b51c8f8f7802812791 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Nov 2026 05:58:15 +0400 Subject: feat(movement): play authored walking cycles from chassis travel Select a closed forward stride from the model for explicit walking profiles. Drive it from world displacement and subtract baked forward travel before updating geometry, mounts and shadows. Verified light, medium and heavy stock model cycles and watched leg poses change from the normal AutoDemo start with Vulkan validation clean. Stop transitions and terrain-adaptive feet remain open. --- crates/fparkan-runtime/src/unit_patrol.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/fparkan-runtime/src/unit_patrol.rs') diff --git a/crates/fparkan-runtime/src/unit_patrol.rs b/crates/fparkan-runtime/src/unit_patrol.rs index 57e01b78..0eaf04fc 100644 --- a/crates/fparkan-runtime/src/unit_patrol.rs +++ b/crates/fparkan-runtime/src/unit_patrol.rs @@ -424,7 +424,7 @@ impl UnitPatrol { count_rng: &mut u32, ) -> Result { let terrain = &mission.terrain; - let chassis = &mission.unit_can_fly; + let chassis = &mission.unit_chassis_flags; let mut state = self.clone(); state.advance_script_orders(world, &mission.control_device_tables); state.units.retain(|unit| { @@ -449,7 +449,7 @@ impl UnitPatrol { let from = before.position.map(f32::from_bits); let motion_object = crate::CombatObject::read(world, unit.handle); let original_id = motion_object.original_id.unwrap_or(unit.handle.slot); - let can_fly = chassis.get(&original_id).copied().flatten(); + let can_fly = chassis.get(&original_id).and_then(|flags| flags.can_fly); if let Some(destinations) = &mut unit.destinations { if destinations .front() -- cgit v1.2.3