mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
fix(awareness): draw the 250 km range ring as an unpickable primitive
The range ring was a Cesium entity, and entities are always picked, so a click or tap on its edge became an unowned hit: vessel selection read it as empty space and pickContact stopped its touch search there. A contact under the 250 km edge was hard to select. The ring is now a polyline primitive with allowPicking false, in the same PolylineOutline material and 4 px width the entity used, so it draws the same. The flash while pulses run writes the material's colour alphas from the pulses' per-frame update; under reduced motion the colours stay at full and no listener is added. A subject that moves 250 m rebuilds the primitive and keeps the material, so a flash carries on across the move. Viewers without a usable primitive collection (headless tools, stubs) still get a static entity. The ring's geometry options come from awarenessRingGeometryOptions, tested directly, and the tests now check that the awareness visual adds no entity and that every primitive it adds is unpickable, with and without reduced motion.
This commit is contained in:
1 parent
0f56b3147b
commit
686bc4fd0e
4 files changed
+203
-112
No files matched your search
@@ -50,6 +50,8 @@ export const CONTEXT_RIM_HEIGHT_M = 2500;
|
||||
* luminance contrast on light and dark ground alike, and luminance is what
|
||||
* the monochrome styles keep. The core is the Context panel's blue; the halo
|
||||
* is the map-card ink. Widths are screen pixels; `outlineWidth` is per side.
|
||||
* It is drawn as an unpickable primitive, so clicks on its edge reach the
|
||||
* contacts underneath.
|
||||
* While the sonar pulses run, the ring dims to `restOpacity` and flashes
|
||||
* to full as each pulse reaches it, fading over `flashMs`. `restOpacity`
|
||||
* keeps the 250 km edge readable between flashes, in screenshots and for
|
||||
|
||||
Reference in new issue
Block a user