UE4 automatically changes rotation values in data table

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!

Any ideas with this?

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.

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

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.

Doesn’t seem to work. At the Y(green) I entered 179 after resetting all to 0. This is the result:
image
Can you elaborate a bit more on your trick? I would love to have a workaround.

thank you in advance and kind regards!

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

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


Hope it helps anyone.

1 Like