how to set tilt up/down programmatically

Hi,

I want to set tilt up/down programmatically. how can i do this?

var camera = viewer.camera;
function tiltCamera() {
     var idealTilt = Cesium.Math.toRadians(10);
    var c0 = 0.90;
    camera.setView({
        orientation: {
            pitch : c0 * camera.pitch + (1 - c0) * idealTilt
        }
    });
   
}

Thank you.

Hi there,

I would take a look at the Cesium Camera Tutorial, I think should be covered in detail there.

Thanks,

Gabby