# Fix "Up" when rotating around trackedEntity

**URL:** <https://community.cesium.com/t/fix-up-when-rotating-around-trackedentity/9080>\
**Category:** CesiumJS\
**Created:** [February 20, 2020, 12:35am UTC](https://community.cesium.com/t/fix-up-when-rotating-around-trackedentity/9080 "2020-02-20T00:35:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![maarondesigns](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/maarondesigns/32/2102_2.png) [@maarondesigns](https://community.cesium.com/u/maarondesigns)\
**Post date:** [February 20, 2020, 12:35am UTC](https://community.cesium.com/t/fix-up-when-rotating-around-trackedentity/9080/1 "2020-02-20T00:35:02Z")

</div>

\*\*When you track an entity or point and try to orbit the camera around it, it is very easy for the camera to end up in some disorienting position. \*\*

**For example: a point at the top of Mt. Everest. The only way to orbit where the camera stays in the ‘expected’ orientation is if you drag the mouse perfectly horizontally on the screen. If you have any vertical movement in your mouse the camera very quickly ends up with the center of Earth somewhere other than ‘down’.**

**Is there a simple solution to this issue, similar to fixing north in the up position via `scene.camera.constrainedAxis = Cesium.Cartesian3.UNIT_Z`**

 ![Untitled.jpg](https://global.discourse-cdn.com/cesium/original/3X/1/f/1feb7c2a783169048ec4690bdf0ddd985480101f.jpeg)

---

<div class="post-metadata">

**Author:** ![maarondesigns](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/maarondesigns/32/2102_2.png) [@maarondesigns](https://community.cesium.com/u/maarondesigns)\
**Post date:** [February 20, 2020, 12:49am UTC](https://community.cesium.com/t/fix-up-when-rotating-around-trackedentity/9080/2 "2020-02-20T00:49:30Z")

</div>

Well…I answered my own question lol

**`scene.camera.constrainedAxis = Cesium.Cartesian3.UNIT_Z` does the trick…**

---

<div class="post-metadata">

**Author:** ![omar](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/omar/32/1999_2.png) [@omar](https://community.cesium.com/u/omar)\
**Post date:** [February 20, 2020, 5:45pm UTC](https://community.cesium.com/t/fix-up-when-rotating-around-trackedentity/9080/3 "2020-02-20T17:45:16Z")

</div>

Thanks for posting your solution!

What kind of app are you working on?

---

<div class="post-metadata">

**Author:** ![maarondesigns](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/maarondesigns/32/2102_2.png) [@maarondesigns](https://community.cesium.com/u/maarondesigns)\
**Post date:** [February 20, 2020, 6:01pm UTC](https://community.cesium.com/t/fix-up-when-rotating-around-trackedentity/9080/4 "2020-02-20T18:01:03Z")

</div>

Its a general tool for the company I work at. Mainly for keeping track of what countries the owner has visited and managing the companies assets and employees who are in many countries.
