# Best practise for camera rotate over POI

**URL:** <https://community.cesium.com/t/best-practise-for-camera-rotate-over-poi/2470>\
**Category:** CesiumJS\
**Created:** [May 8, 2015, 6:09am UTC](https://community.cesium.com/t/best-practise-for-camera-rotate-over-poi/2470 "2015-05-08T06:09:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lu\_Yiheng](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@Lu\_Yiheng](https://community.cesium.com/u/Lu_Yiheng)\
**Post date:** [May 8, 2015, 6:09am UTC](https://community.cesium.com/t/best-practise-for-camera-rotate-over-poi/2470/1 "2015-05-08T06:09:07Z")

</div>

I want to present a model on the map, and let it spin automatically. So I want to set the camera rotate over this model slowly.

I kinda achieved by using a method I don’t really feel elegant:

1. I use **viewer.camera.lookAt(myModelPosition, HeadingPitchRange)**

2. Then i call it every 0.1 sec with a smaller heading value.

Could anyone help with a more elegant way?

Thanks.

---

<div class="post-metadata">

**Author:** ![nosigcavok](https://avatars.discourse-cdn.com/v4/letter/n/5e9695/32.png) [@nosigcavok](https://community.cesium.com/u/nosigcavok)\
**Post date:** [May 10, 2015, 11:58am UTC](https://community.cesium.com/t/best-practise-for-camera-rotate-over-poi/2470/2 "2015-05-10T11:58:36Z")

</div>

Ciao

Maybe you can adapt the solution presented by HyperSonic here: [How to circle around a model/entity / viewer.flyTo() path](https://groups.google.com/forum/#!searchin/cesium-dev/flyto/cesium-dev/Hwzy6Iz_X6M/A_3X7C4TeLYJ)  
-\> Define a given time to move from heading A to heading B instead of many individual headings.

---

<div class="post-metadata">

**Author:** ![Lu\_Yiheng](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@Lu\_Yiheng](https://community.cesium.com/u/Lu_Yiheng)\
**Post date:** [May 11, 2015, 6:47am UTC](https://community.cesium.com/t/best-practise-for-camera-rotate-over-poi/2470/3 "2015-05-11T06:47:18Z")

</div>

Thanks Martin,

So it’s similar logic of what I’m doing now. So i guess there is no more elegant way. (like set a path for camera to circle)

Best,

Narco
