# How to track entity with fixed yaw angle?

**URL:** <https://community.cesium.com/t/how-to-track-entity-with-fixed-yaw-angle/17099>\
**Category:** CesiumJS\
**Created:** [January 31, 2022, 5:12am UTC](https://community.cesium.com/t/how-to-track-entity-with-fixed-yaw-angle/17099 "2022-01-31T05:12:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohamad](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/mohamad/32/3476_2.png) [@mohamad](https://community.cesium.com/u/mohamad)\
**Post date:** [January 31, 2022, 5:12am UTC](https://community.cesium.com/t/how-to-track-entity-with-fixed-yaw-angle/17099/1 "2022-01-31T05:12:22Z")

</div>

HI

I will track a moving entity with a fixed yaw and roll angle of camera . it is better that we can change pitch angle and zoom level of camera if possible .

---

<div class="post-metadata">

**Author:** ![sam.rothstein](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sam.rothstein/32/6584_2.png) [@sam.rothstein](https://community.cesium.com/u/sam.rothstein)\
**Post date:** [February 1, 2022, 3:43pm UTC](https://community.cesium.com/t/how-to-track-entity-with-fixed-yaw-angle/17099/2 "2022-02-01T15:43:30Z")

</div>

Hi @mohamad,

You should be able to update the position of the Camera based upon the position of the entity that you want to track.

-Sam

---

<div class="post-metadata">

**Author:** ![mohamad](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/mohamad/32/3476_2.png) [@mohamad](https://community.cesium.com/u/mohamad)\
**Post date:** [February 2, 2022, 7:18am UTC](https://community.cesium.com/t/how-to-track-entity-with-fixed-yaw-angle/17099/3 "2022-02-02T07:18:05Z")

</div>

yes, i used “lookat” . it worked.

---

<div class="post-metadata">

**Author:** ![sam.rothstein](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sam.rothstein/32/6584_2.png) [@sam.rothstein](https://community.cesium.com/u/sam.rothstein)\
**Post date:** [February 3, 2022, 5:28pm UTC](https://community.cesium.com/t/how-to-track-entity-with-fixed-yaw-angle/17099/4 "2022-02-03T17:28:52Z")

</div>

Hi @mohamad,

Great! happy that worked.

-Sam
