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/lib.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'crates/fparkan-runtime/src/lib.rs') diff --git a/crates/fparkan-runtime/src/lib.rs b/crates/fparkan-runtime/src/lib.rs index 991e5efc..9fb9a262 100644 --- a/crates/fparkan-runtime/src/lib.rs +++ b/crates/fparkan-runtime/src/lib.rs @@ -103,12 +103,15 @@ mod script_host; mod script_patrol; mod script_time; mod unit_chassis; +pub use unit_chassis::loaded_walk_chassis; mod unit_combat; mod unit_motion; pub use unit_motion::{loaded_mission_unit_motion_report, UnitMotionReport, UnitMotionSample}; mod unit_patrol; mod unit_size_class; mod unit_spawn; +mod walk_animation; +pub use walk_animation::WalkAnimation; mod weapon_pose; mod wheel_animation; pub use weapon_pose::{initial_component_node_times, WeaponPoseReport}; @@ -1400,7 +1403,7 @@ struct LoadedMissionState { mission_assets: MissionAssets, asset_plan: MissionAssetPlan, object_drafts: Vec, - unit_can_fly: std::collections::BTreeMap>, + unit_chassis_flags: std::collections::BTreeMap, behavior_distributors: Vec, behavior_ore_states: Vec, behavior_profiles: Vec, @@ -2726,7 +2729,7 @@ node_provider_distribution_suspended: false, engine.production = production; let free_research = research::FreeResearch::new(&object_drafts[..reserve_start]); let chassis_resources = CachedResourceRepository::new(vfs.clone()); - let unit_can_fly = unit_chassis::load_flags(&chassis_resources, &object_drafts); + let unit_chassis_flags = unit_chassis::load_flags(&chassis_resources, &object_drafts); engine.loaded = Some(LoadedMissionState { summary: summary.clone(), mission, @@ -2737,7 +2740,7 @@ node_provider_distribution_suspended: false, mission_assets, asset_plan: mission_asset_plan, object_drafts, - unit_can_fly, + unit_chassis_flags, behavior_distributors, behavior_ore_states, behavior_profiles, -- cgit v1.2.3