mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
feat(satellites): render on Navara
Render satellite fleets and selected targets through mover banks and orbit lines. Enable the celestial HUD on Navara and keep native follow explicitly in ENU. Add deterministic interaction, share, orbit, motion and cleanup acceptance QA. Record complete targeted acceptance and remaining shared cross-shell tile failures.
This commit is contained in:
1 parent
000ef99464
commit
6bdb995fe3
25 files changed
+727
-53
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import * as geo from './geo/index.js';
|
||||
import { createCelestialView } from './celestialRing/view.js';
|
||||
import { engineFromViewer } from './globe/cesium/engineFromViewer.js';
|
||||
import {
|
||||
createCelestialEphemeris,
|
||||
@@ -394,7 +395,8 @@ export class CelestialRing {
|
||||
* @param {{enabled?:boolean,onAutoDisable?:Function}} [options]
|
||||
*/
|
||||
constructor(viewer, { enabled = true, onAutoDisable = null } = {}) {
|
||||
this.viewer = viewer;
|
||||
this._engineView = viewer?.kind ? createCelestialView(viewer) : null;
|
||||
this.viewer = this._engineView?.view ?? viewer;
|
||||
this.enabled = !!enabled;
|
||||
this.visible = false;
|
||||
this._onAutoDisable =
|
||||
@@ -420,7 +422,7 @@ export class CelestialRing {
|
||||
this._ephemeris = createCelestialEphemeris();
|
||||
|
||||
this._buildDOM();
|
||||
this._removePostRender = viewer.scene.postRender.addEventListener(() =>
|
||||
this._removePostRender = this.viewer.scene.postRender.addEventListener(() =>
|
||||
this._draw(),
|
||||
);
|
||||
// Pre-existing staleness fix (perf wave 2 review): the ephemeris was
|
||||
@@ -825,5 +827,6 @@ export class CelestialRing {
|
||||
if (this._removePostRender) this._removePostRender();
|
||||
this._removePostRender = null;
|
||||
this._root?.remove();
|
||||
this._engineView?.destroy();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user