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. --- crates/fparkan-runtime/src/unit_combat.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'crates/fparkan-runtime/src/unit_combat.rs') diff --git a/crates/fparkan-runtime/src/unit_combat.rs b/crates/fparkan-runtime/src/unit_combat.rs index eaab747a..593570cf 100644 --- a/crates/fparkan-runtime/src/unit_combat.rs +++ b/crates/fparkan-runtime/src/unit_combat.rs @@ -911,9 +911,8 @@ mod tests { assert!(destruction_effects.iter().any(|event| { event.archive == "system.rlb" && event.name == "explode_rbr_b.exp" - && event.object_index.is_some_and(|index| { - drafts[index].original_id.map(|id| id.0) == retired.original_id - }) + && matches!(event.mesh, Some(crate::DestroyedMesh::Mounted { object_index }) + if drafts[object_index].original_id.map(|id| id.0) == retired.original_id) && event .position .iter() -- cgit v1.2.3