Keep the cockpit camera steady near the ground on both engines

Cesium lifts a camera below its globe every frame, between the cockpit's 20 Hz updates, so an eye placed under the terrain (an aircraft reading below it on a cold floor cell) jumped up and down. The cockpit now also keeps its eye above the engine's own surface. Navara's ground floor stands aside while the camera inputs are off, since the cockpit places the camera itself.
This commit is contained in:
German Khokhlov committed 2026-11-06 16:52:35 +04:00
1 parent 9825b02aab
commit 90166024e9
8 files changed
+105 -9

No files matched your search

+2 -2
View File
@@ -5,8 +5,8 @@
// controller stops at the surface.
//
// Each frame (engine preRender, after the camera model reads Navara's
// camera), while the camera is free (no flight running, no lookAt target)
// and below MAX_HEIGHT:
// camera), while the camera is free (no flight running, no lookAt target,
// camera inputs on) and below MAX_HEIGHT:
// - the ground under the camera is sampled (surface.sampleHeight: tiles,
// else terrain; else the ellipsoid), at most every RESAMPLE_MS or after a
// RESAMPLE_METRES move;