mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-18 09:12:18 +00:00
Follow aircraft and satellites through the camera port
Flights and military follow their tracked aircraft with an entityFollowTarget: framed in ENU from viewFrom, never closer than 150 m, presentation read from the drawn entity's record. Satellites follow in Cesium's autodetect frame. The layers' own framing (applyTrackedCameraFrame) goes; the port's follow has the same close-range rules, and trackedCamera.js no longer imports Cesium. The port's helper entity draws nothing: its point's outline is transparent too, and click and voice picks of it count as picks of the target's drawn entity. The fake camera binder follows when the fake has Cesium's entity tracking.
This commit is contained in:
1 parent
99f9a701d9
commit
e3a850bc9c
22 files changed
+291
-332
No files matched your search
@@ -126,13 +126,12 @@ export function createFlightState({ source, services }) {
|
||||
|
||||
flightState._trackedEntity = null;
|
||||
|
||||
/** Disposes the single active tracked-camera framing owner. */
|
||||
|
||||
flightState._trackedCameraFrameStop = null;
|
||||
/** The FollowTarget the camera follows the tracked aircraft with. */
|
||||
flightState._followTarget = null;
|
||||
|
||||
/** @type {Cesium.Model|null} Standalone 3D model for the tracked aircraft — NOT a graphic on
|
||||
* _trackedEntity, so viewer.trackedEntity's follow-camera always has a ready bounding sphere
|
||||
* (a model graphic reports PENDING until loaded, which freezes the centering on 3D-toggle). */
|
||||
* _trackedEntity, which stays a plain, always-ready billboard (a model graphic reports PENDING
|
||||
* until loaded); the camera follows its own target. */
|
||||
|
||||
flightState._trackedModel = null;
|
||||
|
||||
|
||||
Reference in new issue
Block a user