mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-12 14:22:21 +00:00
fix(cockpit): the limb check reads the exact look angles; the lease note names both ways back to Recent Imagery
This commit is contained in:
1 parent
e968233a52
commit
3bf7e9edb7
2 files changed
+9
-2
No files matched your search
@@ -1635,7 +1635,8 @@ the map switches to Esri imagery, and exit puts it back unless the operator
|
|||||||
picked another map meanwhile; another owner already holding the map (an
|
picked another map meanwhile; another owner already holding the map (an
|
||||||
imagery comparison) keeps it as it is. While orbit holds the lease, Recent
|
imagery comparison) keeps it as it is. While orbit holds the lease, Recent
|
||||||
Imagery cannot take it: turned on in orbit, the layer reports the comparison
|
Imagery cannot take it: turned on in orbit, the layer reports the comparison
|
||||||
in use and needs turning off and on again after exit. The Cockpit cloud pass is off in orbit
|
in use until, after exit, it is turned off and on again or its shown days
|
||||||
|
are cleared and picked again. The Cockpit cloud pass is off in orbit
|
||||||
(it fades out above 24 km); cloud cover from orbit is the Weather layer's,
|
(it fades out above 24 km); cloud cover from orbit is the Weather layer's,
|
||||||
and the saved cloud preference stands for the next aircraft or bridge. The layer hides the satellite's dot, docked
|
and the saved cloud preference stands for the next aircraft or bridge. The layer hides the satellite's dot, docked
|
||||||
companions, its own orbit ring and its detection bracket, and draws every
|
companions, its own orbit ring and its detection bracket, and draws every
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ import {
|
|||||||
zoomTransitionState,
|
zoomTransitionState,
|
||||||
} from '../cockpitOrbital.js';
|
} from '../cockpitOrbital.js';
|
||||||
import {
|
import {
|
||||||
|
clampOrbitalLook,
|
||||||
easeLook,
|
easeLook,
|
||||||
lookIsOffset,
|
lookIsOffset,
|
||||||
orbitalLookReadoutParts,
|
orbitalLookReadoutParts,
|
||||||
@@ -418,9 +419,14 @@ export function publishOrbitalView(info, transition = IDLE_TRANSITION) {
|
|||||||
// Tilted past the limb, the view's centre looks into space: no swath. The
|
// Tilted past the limb, the view's centre looks into space: no swath. The
|
||||||
// camera eases toward the target, so both must meet the Earth; the HUD
|
// camera eases toward the target, so both must meet the Earth; the HUD
|
||||||
// republishes on its cadence, so the swath appears once the view arrives.
|
// republishes on its cadence, so the swath appears once the view arrives.
|
||||||
|
// Exact angles here, not the whole degrees the readout rounds to.
|
||||||
|
const target = clampOrbitalLook(state.lookTarget);
|
||||||
const seesEarth =
|
const seesEarth =
|
||||||
!offset ||
|
!offset ||
|
||||||
(offNadirCentreMeetsEarth(info.altitudeM, tilt) &&
|
(offNadirCentreMeetsEarth(info.altitudeM, {
|
||||||
|
northDeg: target.pitchDeg,
|
||||||
|
eastDeg: target.yawDeg,
|
||||||
|
}) &&
|
||||||
offNadirCentreMeetsEarth(info.altitudeM, {
|
offNadirCentreMeetsEarth(info.altitudeM, {
|
||||||
northDeg: state.lookView?.pitchDeg ?? 0,
|
northDeg: state.lookView?.pitchDeg ?? 0,
|
||||||
eastDeg: state.lookView?.yawDeg ?? 0,
|
eastDeg: state.lookView?.yawDeg ?? 0,
|
||||||
|
|||||||
Reference in new issue
Block a user