mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Tilt, north-up and the compass through the camera, query and frame ports
The map orientation controls pick the view's centre through the query port (depth, then the globe along the pick ray, then the ellipsoid), read the camera from the camera port's pose, and set the orbit frame through the port's lookAt, release and setView. The eased orientation runs on the frame port's preUpdate, the compass needle on its preRender, and the tilt state refreshes on the camera port's moveEnd. While the camera follows something, the orbit offset must stay in the follow's own frame (a satellite's included), which only Cesium knows: that step moves verbatim into placeFollowEye in shareFollow, which stays on the Cesium allow-list. cameraOrientationControls leaves it.
This commit is contained in:
1 parent
7ab969599c
commit
068c39d5e7
5 files changed
+169
-131
No files matched your search
@@ -110,7 +110,6 @@
|
||||
"src/services/meshFloorSampler.js",
|
||||
"src/sky/starrySky.js",
|
||||
"src/ui/applicationShell.js",
|
||||
"src/ui/cameraOrientationControls.js",
|
||||
"src/ui/cockpitCamera.js",
|
||||
"src/ui/cockpitContext.js",
|
||||
"src/ui/cockpitController.js",
|
||||
|
||||
Reference in new issue
Block a user