aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-runtime/src/cockpit_instruments.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-12-02 21:27:58 +0300
committerValentin Popov <valentin@popov.link>2026-12-02 21:27:58 +0300
commit882105f571231acd562aa403fc4767585f70ac54 (patch)
treee719e18d8b3f89c0362a906e6f365de168953c85 /crates/fparkan-runtime/src/cockpit_instruments.rs
parentfd159dbfa3e0ae399658a2cbea305d0a35debf77 (diff)
downloadfparkan-882105f571231acd562aa403fc4767585f70ac54.tar.xz
fparkan-882105f571231acd562aa403fc4767585f70ac54.zip
test(ui): verify targeter sphere stays stable across damage stages
Diffstat (limited to 'crates/fparkan-runtime/src/cockpit_instruments.rs')
-rw-r--r--crates/fparkan-runtime/src/cockpit_instruments.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/fparkan-runtime/src/cockpit_instruments.rs b/crates/fparkan-runtime/src/cockpit_instruments.rs
index 9911d52e..4948773e 100644
--- a/crates/fparkan-runtime/src/cockpit_instruments.rs
+++ b/crates/fparkan-runtime/src/cockpit_instruments.rs
@@ -91,7 +91,8 @@ pub fn instrument_readout(
})
}
-/// Local sphere used by AniMesh selector 2 with the targeter's node filter.
+/// Initial local sphere used by AniMesh selector 2 with the targeter's node
+/// filter. Changing a node's damage stage does not invalidate this sphere.
pub fn instrument_bounds(engine: &Engine, object_index: usize) -> Option<([f32; 3], f32)> {
let mission = engine.loaded.as_ref()?;
let draft = mission.object_drafts.get(object_index)?;