From 5844c9b0f4216da47cf03894b34f9a150fd5b170 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Nov 2026 09:31:05 +0400 Subject: feat(render): hide exhausted chassis geometry Use provider depletion and the node visibility flag to suppress the projected Vulkan ranges of a failed chassis part. The matching camera fixture shows the heavy warbot losing one track section after a hit while the rest of the hull remains visible. --- crates/fparkan-runtime/src/projectile.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'crates/fparkan-runtime/src/projectile.rs') diff --git a/crates/fparkan-runtime/src/projectile.rs b/crates/fparkan-runtime/src/projectile.rs index e4f098a8..70c9ab77 100644 --- a/crates/fparkan-runtime/src/projectile.rs +++ b/crates/fparkan-runtime/src/projectile.rs @@ -460,6 +460,7 @@ mod tests { ); assert_eq!(amount(&engine, node), 0.0_f32.to_bits()); assert_eq!(amount(&engine, 0), root_before); + assert!(crate::depleted_chassis_nodes(&engine).any(|item| item == (14, node as usize))); assert!(transform_state(&engine.world, target).is_ok()); let effects = take_unit_destruction_effects(&mut engine); assert_eq!(effects.len(), 1); -- cgit v1.2.3