From 2f75b9792c98c4d32b0349810080dd226357b505 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Nov 2026 09:42:38 +0400 Subject: feat(render): throw detached chassis nodes as fragments Pass the depleted node to an authored Op10 with a built-in mesh request. Reuse its existing draw ranges for the flight and keep the hull alive. The fixed-camera fixture shows the heavy track section separate and rotate after impact. --- apps/fparkan-game/src/main.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'apps/fparkan-game/src/main.rs') diff --git a/apps/fparkan-game/src/main.rs b/apps/fparkan-game/src/main.rs index 0d134277..ae1e80a5 100644 --- a/apps/fparkan-game/src/main.rs +++ b/apps/fparkan-game/src/main.rs @@ -11404,9 +11404,9 @@ impl StaticVulkanApp { fparkan_runtime::take_unit_destruction_effects(engine), control_clock_ms, self.audio.as_mut(), - |index, origin| { + |mesh, origin| { debris::capture( - index, + mesh, origin, &self.dynamic_component_geometry, &self.mesh, @@ -11967,6 +11967,11 @@ impl StaticVulkanApp { &self.component_pose_buffers, &self.mesh, renderer, + |range| { + self.destruction_effects + .as_ref() + .is_some_and(|effects| effects.keeps_range(range)) + }, )?; } if !self.removed_mission_roots.is_empty() || self.boarded_hero_index.is_some() { -- cgit v1.2.3