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
@@ -72,7 +72,5 @@
|
||||
"src/services/meshFloorSampler.js",
|
||||
"src/sky/starrySky.js",
|
||||
"src/ui/applicationShell.js",
|
||||
"src/ui/cockpitCamera.js",
|
||||
"src/ui/cockpitController.js",
|
||||
"src/ui/shareFollow.js"
|
||||
]
|
||||
@@ -100,6 +100,10 @@ const DRAW_FROM_CALLER = new Set([
|
||||
* `./render/cesium/unbound`.
|
||||
*/
|
||||
const CAMERA_FROM_CALLER = new Set([
|
||||
// Not wholly Cesium-free (its pointer input still is), but it loads no
|
||||
// factory: Cockpit moves the camera on the frame port's preUpdate, and
|
||||
// `frameOf` throws, naming the export, until the caller has loaded it.
|
||||
'./ui/cockpit',
|
||||
'./ui/navigation',
|
||||
'./voice/commands',
|
||||
'./voice/controller',
|
||||
|
||||
Reference in new issue
Block a user