# Help with orientation

**URL:** <https://community.cesium.com/t/help-with-orientation/12758>\
**Category:** CesiumJS\
**Created:** [March 25, 2021, 10:24pm UTC](https://community.cesium.com/t/help-with-orientation/12758 "2021-03-25T22:24:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![devondespain](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/devondespain/32/1987_2.png) [@devondespain](https://community.cesium.com/u/devondespain)\
**Post date:** [March 25, 2021, 10:24pm UTC](https://community.cesium.com/t/help-with-orientation/12758/1 "2021-03-25T22:24:11Z")

</div>

I have a model that will be acting like a satellite and we need the orientation to be correct.

The problem: We are getting position data in ECI reference frame. We are also getting quaternions for orientation. We are able to show the position correctly in ECI frame with the earth rotating and position changing and the sun staying relatively still. It is with the orientation where things get strange. I created a sandcastle below for reference. There are three comments in the test sections. to test each section uncomment the code snippet.

Sandcastle: [Orientation](https://sandcastle.cesium.com/#c=7Vhtcxo3EP4rGn8pTInuIFNPamy3BDstHTtxbabTSel0xJ0ATXQSlXQQ0vF/7650dz5eHbv+2EswsO+7z0pasWCGJF8ySc7IHyNFyD/4hxCRnpDRUaqTPOPKjY5agaxYxpHR/3h9Ra51ymXFWnBjhVbIbdO4IN+3tmwyYRLDJo5ka+qVZW5FnpGeMBXLC56UVgiZSjdBUUqjO5bNJb9gjkVeykZBH9SLT3/BRzqV48oaITZhEnx1aFyRMqFElmc34jOXd+ILcNudNwX3vsrkz+5IjdQCKrYQfMkN1EzxJQmO6G+e1hgdJf57XyvHhOKYR4g9kTr5hFLXIaGabn+N1djkNELu1jHjhiLj5KRk/5JLwRQUgNOJ0dnA6jfHcRuC6MSd9qv49atOPIzjE///4+ioGXJKcmMA1pcwZZ2eP9VOe1dImOctU9OapX5Fo/2r3vXN5cXIgfR9M+jYmc5l2gPkwNcJmTBpuWd7mMI/BGvMLL9iK49XAI7ahCtOQXHKzcrzLJ1y14hRF3WmUo/5prwngoB/p+B++ZPRuUp7LtN2PuMGNXw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