mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Move Cockpit onto the camera and frame ports
Cockpit now places its eye with the geo maths and moves the camera through the camera port on the frame port's preUpdate, so cockpitCamera.js and cockpitController.js no longer load Cesium and leave the allow-list. Whether the aircraft still draws comes from a trackedEntityDrawn service, which the application shell answers from the viewer's entities. The mesh floor probe accepts the viewer as well as its scene.
This commit is contained in:
1 parent
b47aa5f3de
commit
2a9a2d5be8
11 files changed
+433
-159
No files matched your search
@@ -1109,6 +1109,14 @@ no longer reaches Cesium, so a caller handing it a Cesium viewer,
|
||||
own, with no renderer bound, loads the `./render/cesium/unbound` export once
|
||||
first.
|
||||
|
||||
Cockpit (`./ui/cockpit`) flies the camera through the camera port on the frame
|
||||
port's `preUpdate`, with the shared geo maths, and no longer loads the Cesium
|
||||
camera factory: a caller handing it a Cesium viewer, with no
|
||||
renderer bound, loads the `./render/cesium/unbound` export once first, or its
|
||||
controller throws naming it. Whether the aircraft it flies still draws comes
|
||||
from its `trackedEntityDrawn` service (the application asks the viewer's
|
||||
entities); without one, Cockpit takes the aircraft as drawn.
|
||||
|
||||
## Vessel components and sources
|
||||
|
||||
`src/data/aisLiveVessels.js` assembles `createVesselLayer` from the
|
||||
|
||||
Reference in new issue
Block a user