# How can i set Heading,pitch and roll in flight tracker

**URL:** <https://community.cesium.com/t/how-can-i-set-heading-pitch-and-roll-in-flight-tracker/20489>\
**Category:** CesiumJS\
**Created:** [September 21, 2022, 5:58am UTC](https://community.cesium.com/t/how-can-i-set-heading-pitch-and-roll-in-flight-tracker/20489 "2022-09-21T05:58:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soumyaranjan\_Nayak1](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/soumyaranjan_nayak1/32/9310_2.png) [@Soumyaranjan\_Nayak1](https://community.cesium.com/u/Soumyaranjan_Nayak1)\
**Post date:** [September 21, 2022, 5:58am UTC](https://community.cesium.com/t/how-can-i-set-heading-pitch-and-roll-in-flight-tracker/20489/1 "2022-09-21T05:58:09Z")

</div>

Hi Team,  
please anyone can reply or suggest me How can i set Heading,pitch and roll in flight tracker

---

<div class="post-metadata">

**Author:** ![ThunderEgg](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/thunderegg/32/11150_2.png) [@ThunderEgg](https://community.cesium.com/u/ThunderEgg)\
**Post date:** [October 17, 2022, 6:44pm UTC](https://community.cesium.com/t/how-can-i-set-heading-pitch-and-roll-in-flight-tracker/20489/2 "2022-10-17T18:44:22Z")

</div>

Hello @Soumyaranjan_Nayak1 I had the same problem initially but I was able to figure out how to do it, here’s my way of doing it, it is most likely not the most optimized approach but it turned out fine for me so I’m sticking with it:

Essentially I’m using Get input key at Distance Along Spine to get the “index” then multiply by the length of your pitch, heading and roll data to obtain the index of those 3 data you should grab from, then just grab the data and add to transform

 ![image](https://global.discourse-cdn.com/cesium/original/3X/2/d/2ddd39d2b3f37696b457e6243d9229b98c37abab.png)

---

<div class="post-metadata">

**Author:** ![Jacky](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/jacky/32/7686_2.png) [@Jacky](https://community.cesium.com/u/Jacky)\
**Post date:** [October 18, 2022, 7:31pm UTC](https://community.cesium.com/t/how-can-i-set-heading-pitch-and-roll-in-flight-tracker/20489/3 "2022-10-18T19:31:30Z")

</div>

Hi @Soumyaranjan_Nayak1 , You may check this sandcastle example [link](https://sandcastle.cesium.com/?src=HeadingPitchRoll.html).

- Regards
