# Tilt

**URL:** <https://community.cesium.com/t/tilt/3072>\
**Category:** CesiumJS\
**Created:** [September 16, 2015, 9:14pm UTC](https://community.cesium.com/t/tilt/3072 "2015-09-16T21:14:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luanantonio](https://avatars.discourse-cdn.com/v4/letter/l/cc9497/32.png) [@luanantonio](https://community.cesium.com/u/luanantonio)\
**Post date:** [September 16, 2015, 9:14pm UTC](https://community.cesium.com/t/tilt/3072/1 "2015-09-16T21:14:41Z")

</div>

It is possible to tilt the camera using viewRectangle?

---

<div class="post-metadata">

**Author:** ![Matt\_Amato](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/matt_amato/32/1993_2.png) [@Matt\_Amato](https://community.cesium.com/u/Matt_Amato)\
**Post date:** [September 17, 2015, 1:32am UTC](https://community.cesium.com/t/tilt/3072/2 "2015-09-17T01:32:56Z")

</div>

Not directly, but you can easily make a BoundingSphere from the rectangle and then use viewBoundingSphere to do what you want. In this case, you can modify pitch for your desired angle and heading if you want to view it from an angle other than north.

var heading = 0;

var pitch = -Math.PI/4;

var bs = Cesium.BoundingSphere.fromRectangle3D(rectangle);

viewer.camera.viewBoundingSphere(bs, new Cesium.HeadingPitchRange(heading, pitch));

viewer.camera.lookAtTransform(Cesium.Matrix4.IDENTITY);
