# Do not move camera when setting trackedEntity

**URL:** <https://community.cesium.com/t/do-not-move-camera-when-setting-trackedentity/9554>\
**Category:** CesiumJS\
**Created:** [May 6, 2020, 8:07pm UTC](https://community.cesium.com/t/do-not-move-camera-when-setting-trackedentity/9554 "2020-05-06T20:07:45Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![vrana](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/vrana/32/2228_2.png) [@vrana](https://community.cesium.com/u/vrana)\
**Post date:** [May 8, 2020, 8:51am UTC](https://community.cesium.com/t/do-not-move-camera-when-setting-trackedentity/9554/3 "2020-05-08T08:51:52Z")

</div>

Thanks for the answer. My use-case is slightly different. I want to track the entity once it starts moving and stop tracking once it stops moving. The only thing I need is the camera to just rotate when the tracking starts instead of jumping and rotating.

I think that this could be easily done with some matrix operations but I don’t understand how they work. I need to compute a north-east-up vector from two cartesians.

BTW this is my use case: [https://www.paragliding-mapa.cz/mapa/cesium/15](https://www.paragliding-mapa.cz/mapa/cesium/15)  
Try rotating or moving the camera and then start flying with the `+` button or key `Up`. The camera jumps. While moving, rotate the camera, then stop with `–` button or key `Down`. Now start flying again and the camera jumps again.

---

_[View the full topic](https://community.cesium.com/t/do-not-move-camera-when-setting-trackedentity/9554)._
