I want to create the exact same behavior as minimumZoomDistance,
but instead of limiting the distance to the target, I want to limit the camera’s absolute height above a reference plane (like the ground of our scene).
The Problem
When scene.globe.show = false, Cesium has no concept of ground level:
-
Cartographic.heightreturns the distance from the Earth’s center, not from “ground”. -
There’s no built-in way to prevent the camera from going below a certain height.
-
minimumZoomDistanceonly limits range to thelookAttarget, not vertical height.
I need the same smooth, natural stopping effect as minimumZoomDistance, but based on height, not range.
What I am Looking For
A way to:
-
Block any zoom or tilt input that would move the camera below a defined minimum local height (
zin ENU coordinates around our model). -
Keep the behavior perfectly smooth — the camera just stops descending, no snapping or repositioning.
-
Work even when
scene.globe.show = false. -
Remain compatible with a persistent
camera.lookAt(target, …)(the camera always orbits the model).
In Simple Terms
I am trying to implement a minimumZoomHeight —
a height-based limit for the Cesium camera that behaves exactly like minimumZoomDistance,
even in globe-less scenes.