diff options
| author | Valentin Popov <valentin@popov.link> | 2026-11-26 08:24:02 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-11-26 08:24:02 +0300 |
| commit | ce4fdc768602efe7c621e631c1390d8d76248505 (patch) | |
| tree | 9a5908319ea16bebe3e3bd17c4f23c72edaf89ef /crates/fparkan-runtime/src/projectile_damage.rs | |
| parent | 25f0b76a10dbd5ac2cfabd5354f621ae82cf19b4 (diff) | |
| download | fparkan-ce4fdc768602efe7c621e631c1390d8d76248505.tar.xz fparkan-ce4fdc768602efe7c621e631c1390d8d76248505.zip | |
feat(combat): apply projectile hits to chassis nodes
Use prepared chassis triangles to choose a loaded NDP node. Exhausted ordinary parts play their authored EXPL independently of root death. Unresolved mounted geometry keeps a sphere contact on exit. A stock side-shot fixture exhausts a heavy chassis part while the hull survives.
Diffstat (limited to 'crates/fparkan-runtime/src/projectile_damage.rs')
| -rw-r--r-- | crates/fparkan-runtime/src/projectile_damage.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/fparkan-runtime/src/projectile_damage.rs b/crates/fparkan-runtime/src/projectile_damage.rs index 889123bb..0231306f 100644 --- a/crates/fparkan-runtime/src/projectile_damage.rs +++ b/crates/fparkan-runtime/src/projectile_damage.rs @@ -73,7 +73,7 @@ mod tests { .unwrap() .position .map(f32::from_bits), - building_node: None, + node: None, }; assert_eq!( apply_projectile_contact(&mut engine, contact, 235.0).unwrap(), |
