# How to rotate camera around a point

**URL:** <https://community.cesium.com/t/how-to-rotate-camera-around-a-point/5210>\
**Category:** CesiumJS\
**Created:** [February 26, 2017, 2:36am UTC](https://community.cesium.com/t/how-to-rotate-camera-around-a-point/5210 "2017-02-26T02:36:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![849723885](https://avatars.discourse-cdn.com/v4/letter/8/5f9b8f/32.png) [@849723885](https://community.cesium.com/u/849723885)\
**Post date:** [February 26, 2017, 2:36am UTC](https://community.cesium.com/t/how-to-rotate-camera-around-a-point/5210/1 "2017-02-26T02:36:52Z")

</div>

Does anyone know how to Rotate Camera around a point ,or Z-axis ,if possible plz show me some code?

like this pic , I want to rotate camera around my own scene data , how can I do that?

 ![image](https://i.stack.imgur.com/LEClp.jpg)

---

<div class="post-metadata">

**Author:** ![Willem](https://avatars.discourse-cdn.com/v4/letter/w/898d66/32.png) [@Willem](https://community.cesium.com/u/Willem)\
**Post date:** [February 27, 2017, 8:43am UTC](https://community.cesium.com/t/how-to-rotate-camera-around-a-point/5210/2 "2017-02-27T08:43:11Z")

</div>

Do a search for “How to circle around a model/entity / viewer.flyTo() path”.  
You do a lookAt() at each clock tick and adjust the heading with the time that has passed.

Willem
