# How does UE4 calculate Roll Pitch and Yaw for a tracked device?

**URL:** <https://forums.unrealengine.com/t/how-does-ue4-calculate-roll-pitch-and-yaw-for-a-tracked-device/474139>\
**Category:** XR Development\
**Tags:** orientation, Vive, unreal-engine, question, tracking\
**Created:** [November 7, 2020, 6:53pm UTC](https://forums.unrealengine.com/t/how-does-ue4-calculate-roll-pitch-and-yaw-for-a-tracked-device/474139 "2020-11-07T18:53:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjoker1991](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mjoker1991](https://forums.unrealengine.com/u/mjoker1991)\
**Post date:** [November 7, 2020, 6:53pm UTC](https://forums.unrealengine.com/t/how-does-ue4-calculate-roll-pitch-and-yaw-for-a-tracked-device/474139/1 "2020-11-07T18:53:42Z")

</div>

Good Evening everyone,

I am trying to do a simple application in VR where I get the orientation of a tracked object (which can be the HMD or a VIVE TRACKER) and I want to extrapolate its orientation and plotting it on the viewport.  
I managed to do it using the tracking device ID however I can not understand how these values are obtained.  
I suppose it is obtained by the variation of the local coordinate system of the tracked object in respect to the world reference (Which for Unreal Engine it is a Left-handed system). However, by looking at the developer guide of the VIVE TRACKER (2018) the coordinate system is right-handed and i can not understand the values that i obtained in game.  
Does the Engine operate some kind of transformation in the local reference to calculate the orientation or does it use the developer defined coordinate system?
