mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 02:14:01 +00:00
fix: keep the globe on screen when zooming out from a tilted view
Cesium zooms a shallow view out by backing along the cursor ray with heading and pitch held fixed, and GEV set no zoom ceiling. Past ~700 km the limb drops below the fixed pitch, the steps grow with height, and the camera flies off into space. Cap user zoom at 40,000 km (whole-Earth view; flights are not limited) and, above 300 km during a user wheel, pinch or right-drag zoom-out, ease the pitch down to at least 8 degrees below the Earth's limb. The clamp yields to disabled inputs, tracked transforms and camera flights.
This commit is contained in:
1 parent
f3adccd01a
commit
e6a6ba0126
6 files changed
+319
No files matched your search
@@ -57,6 +57,8 @@
|
||||
"src/app/mapLifecycle.test.mjs",
|
||||
"src/app/startupCamera.test.mjs",
|
||||
"src/app/viewer.js",
|
||||
"src/app/zoomOutGuard.js",
|
||||
"src/app/zoomOutGuard.test.mjs",
|
||||
"src/app/atmosphereCompat.test.mjs",
|
||||
"src/standalone/application.js",
|
||||
"src/standalone/controls.js",
|
||||
|
||||
@@ -2274,6 +2274,7 @@
|
||||
"src/app/layers/traffic.js",
|
||||
"src/app/operations.js",
|
||||
"src/app/scene.js",
|
||||
"src/app/zoomOutGuard.js",
|
||||
"src/sources/sourceSlot.js",
|
||||
"src/app/sources.js",
|
||||
"src/app/startupChrome.js",
|
||||
|
||||
Reference in new issue
Block a user