Clamp Cesium3D tileset to terrain boundary

Hello

Is there any way to clampToGround the Cesium3D Tileset to terrain boundary ? Because my Cesium3D tileset is at the middle of the terrain I want it to clamp the top of the terrain boundary. I really appreciate it! Thanks!

Hi there,

Here’s a code snippet for how to adjust the height of a 3D tileset.

You can sample the height of terrain at a specific position using the sampleTerrain function as shown in this example.