# UE4 automatically changes rotation values in data table

**URL:** <https://forums.unrealengine.com/t/ue4-automatically-changes-rotation-values-in-data-table/427000>\
**Category:** Community & Industry Discussion\
**Tags:** rotation, weird, unreal-engine, transform, question\
**Created:** [June 9, 2018, 7:27am UTC](https://forums.unrealengine.com/t/ue4-automatically-changes-rotation-values-in-data-table/427000 "2018-06-09T07:27:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarsMiner](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MarsMiner](https://forums.unrealengine.com/u/MarsMiner)\
**Post date:** [June 9, 2018, 7:27am UTC](https://forums.unrealengine.com/t/ue4-automatically-changes-rotation-values-in-data-table/427000/1 "2018-06-09T07:27:05Z")

</div>

Hi all,

I am getting some very strange behaviour when setting rotation values within a transform in a DataTable.  
Sometimes, when I enter a value, it just automatically changes it/changes the other values.

For example:x, y and z are all set to 0. Then, I set z to 90. All good. Then, I set x to 90 too.

And suddenly, the x changes to -108, the y stays and 90 and the x goes to -18. This kind of behaviour seems to be happening pretty much any time I change a value, and it is stopping me from setting my transform to what I want.

What is going on and how can I fix it?

Thanks!

---

<div class="post-metadata">

**Author:** ![MarsMiner](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MarsMiner](https://forums.unrealengine.com/u/MarsMiner)\
**Post date:** [June 10, 2018, 1:21pm UTC](https://forums.unrealengine.com/t/ue4-automatically-changes-rotation-values-in-data-table/427000/2 "2018-06-10T13:21:38Z")

</div>

Any ideas with this?

---

<div class="post-metadata">

**Author:** ![Woodsy\_Studio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Woodsy\_Studio](https://forums.unrealengine.com/u/Woodsy_Studio)\
**Post date:** [February 5, 2019, 5:59pm UTC](https://forums.unrealengine.com/t/ue4-automatically-changes-rotation-values-in-data-table/427000/3 "2019-02-05T17:59:04Z")

</div>

I just wanted to say I’m currently having this same issue in UE4 version 4.20. I can’t set a Y rotator value above 90 in a datatable without it autocorrecting all Rotator values to drastically different numbers.

---

<div class="post-metadata">

**Author:** ![alto\_andre](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@alto\_andre](https://forums.unrealengine.com/u/alto_andre)\
**Post date:** [February 4, 2021, 1:43am UTC](https://forums.unrealengine.com/t/ue4-automatically-changes-rotation-values-in-data-table/427000/4 "2021-02-04T01:43:08Z")

</div>

Did you find a solution to this? I’m having a similar problem directly on the blueprint…

---

<div class="post-metadata">

**Author:** ![ghwlanglois](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ghwlanglois](https://forums.unrealengine.com/u/ghwlanglois)\
**Post date:** [September 23, 2021, 5:32am UTC](https://forums.unrealengine.com/t/ue4-automatically-changes-rotation-values-in-data-table/427000/5 "2021-09-23T05:32:20Z")

</div>

Try clearing all the values by manually entering 0 into each axis in the rotation.  
Then, instead of setting them back to values like 90 or 180, try 89 or 179 for example.  
Unreal Engine’s built-in rotation system clamps angles weirdly when being entered manually due to floating point errors.

---

<div class="post-metadata">

**Author:** ![GamesByHyper\_Eric](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gamesbyhyper_eric/32/709237_2.png) [@GamesByHyper\_Eric](https://forums.unrealengine.com/u/GamesByHyper_Eric)\
**Post date:** [October 29, 2022, 4:33pm UTC](https://forums.unrealengine.com/t/ue4-automatically-changes-rotation-values-in-data-table/427000/6 "2022-10-29T16:33:04Z")

</div>

> [@ghwlanglois](#):
>
> mple.  
> Unreal Engine’s built-in rotation system clamps angles weirdly when being entere

Doesn’t seem to work. At the Y(green) I entered 179 after resetting all to 0. This is the result:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/1/7/417d1afb9077d69233467592b0b3ac12dab26089.png)  
Can you elaborate a bit more on your trick? I would love to have a workaround.

thank you in advance and kind regards!

---

<div class="post-metadata">

**Author:** ![GamesByHyper\_Eric](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gamesbyhyper_eric/32/709237_2.png) [@GamesByHyper\_Eric](https://forums.unrealengine.com/u/GamesByHyper_Eric)\
**Post date:** [October 29, 2022, 4:44pm UTC](https://forums.unrealengine.com/t/ue4-automatically-changes-rotation-values-in-data-table/427000/7 "2022-10-29T16:44:59Z")

</div>

In the meantime I’ve also submitted a bug report. It is Case # 00491370: Engine is automatically changing rotation values in data table

---

<div class="post-metadata">

**Author:** ![GamesByHyper\_Eric](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gamesbyhyper_eric/32/709237_2.png) [@GamesByHyper\_Eric](https://forums.unrealengine.com/u/GamesByHyper_Eric)\
**Post date:** [November 29, 2022, 11:47am UTC](https://forums.unrealengine.com/t/ue4-automatically-changes-rotation-values-in-data-table/427000/8 "2022-11-29T11:47:12Z")

</div>

My workarround: I’ve made my own transform struct:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/9/6/a96d54bdb2669c01aa8b6b95fbae5b6d98c2e657.png)  
Hope it helps anyone.
