Hi Cesium team,
I’m using Cesium for Unity (v1.16.1) with Unity Hub 3.8 to visualise 3D terrain using a Cesium3DTileset
.
Problem
When placing objects using georeferenced coordinates (longitude, latitude, height), I often find that the objects are rendered below the terrain surface, especially when the height is close to ground level.
I would like to:
- Sample the terrain elevation at a specific longitude and latitude
- Adjust my object’s height so that it sits exactly on top of the terrain
- Prevent rendering issues where the object appears buried underground
My Questions
- Is there a recommended way in Cesium for Unity to get terrain elevation at a specific location?
- Can I add colliders or otherwise access the terrain mesh height directly?
- What are the best practices for accurately placing objects on top of Cesium terrain?
Thanks for your support!