mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-23 11:42:21 +00:00
Tiangong is ridden from views on its model, as the ISS is
Four Cockpit views from the layer's own Tiangong model (tiangongMounts.js): Tianhe's port side, the outer ends of Wentian and Mengtian, and the docked vehicle standing in on the aft port. Each rides its own catalog entry, so there are no cards; leaving a station view selects the station's first view's entry (Tianhe here, Nauka on the ISS) instead of Nauka by name. The model stays drawn while the Cockpit rides Tiangong.
This commit is contained in:
1 parent
ce3d292198
commit
66ae67dce4
8 files changed
+308
-20
No files matched your search
@@ -734,13 +734,13 @@ export function exit({ restoreTracking = true } = {}) {
|
||||
const vesselSubject = this.subjectKind === 'vessel' ? this.subjectId : null;
|
||||
const satelliteSubject =
|
||||
this.subjectKind === 'satellite' ? this.subjectId : null;
|
||||
// Leaving a view from the station selects Nauka, whichever view or entry
|
||||
// it ended on: the station's first view, and the one it opens on.
|
||||
// Leaving a view from a station selects the station's home entry (the
|
||||
// ISS's Nauka, Tiangong's Tianhe), whichever view or entry it ended on:
|
||||
// the station's first view, and the one it opens on.
|
||||
const station = this.orbital;
|
||||
const stationHome =
|
||||
satelliteSubject !== null && station && station.mount != null
|
||||
? (station.mountViews?.find((view) => view.key === 'nauka')?.noradId ??
|
||||
null)
|
||||
? (station.mountViews?.[0]?.noradId ?? null)
|
||||
: null;
|
||||
this.active = false;
|
||||
this.subjectKind = null;
|
||||
@@ -814,7 +814,7 @@ export function exit({ restoreTracking = true } = {}) {
|
||||
this.services.aisLiveVesselsLayer?.focusSelectedVessel?.();
|
||||
} else if (restoreTracking && satelliteSubject !== null) {
|
||||
// Back to the satellite's follow camera, through the layer's own refocus;
|
||||
// from the station, on Nauka.
|
||||
// from a station, on its home entry.
|
||||
const layer = this.services.satellitesLayer;
|
||||
let subject = satelliteSubject;
|
||||
if (stationHome !== null && String(stationHome) !== String(subject)) {
|
||||
|
||||
Reference in new issue
Block a user