aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-render/src/cockpit_course.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-12-02 00:04:24 +0300
committerValentin Popov <valentin@popov.link>2026-12-02 00:04:24 +0300
commit752d34af83acf9a818e22c621fb034913079acff (patch)
tree65b0f47859be8f8a33b8e37fecad81cfd660739c /crates/fparkan-render/src/cockpit_course.rs
parent029297446ec0b235602b4f4d9197786a3466a6fe (diff)
downloadfparkan-752d34af83acf9a818e22c621fb034913079acff.tar.xz
fparkan-752d34af83acf9a818e22c621fb034913079acff.zip
feat(ui): plot local detections on the cockpit radar
Draw each current detection from the occupied unit sensor in camera-relative coordinates, with the original range scale, clan color and screen-pixel marks. Check stock Two Fortresses before and after a free-look turn and exercise the native rectangle and line callbacks.
Diffstat (limited to 'crates/fparkan-render/src/cockpit_course.rs')
-rw-r--r--crates/fparkan-render/src/cockpit_course.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/fparkan-render/src/cockpit_course.rs b/crates/fparkan-render/src/cockpit_course.rs
index 974249b0..713c9ca6 100644
--- a/crates/fparkan-render/src/cockpit_course.rs
+++ b/crates/fparkan-render/src/cockpit_course.rs
@@ -2,7 +2,7 @@
use std::f32::consts::{FRAC_PI_2, PI};
-const CENTER: [f32; 2] = [320.0, 396.0];
+pub(crate) const CENTER: [f32; 2] = [320.0, 396.0];
const HALF_MARKER_ANGLE: f32 = 0.08726647;
/// Front and rear marker corners in the original triangle-strip order.