KeyC0de
(KeyC0de)
1
I was experimenting with rotations in various coordinate spaces in unreal.
I realized that unreal uses solely positive 0-360 degrees for roll, pitch & yaw.
How do negative values map to this 0-360 range? Eg if i feed a -30 degree will that be translated to 330 degrees and so on?
AyanMiru
(AyanMiru)
2
I’m pretty sure there is built-in function to do that, but with simple math you can remap values to 0-360 range:
((x + 180) * (-1) - 180) * (-1) = x_remapped
note:
180 is 360 / 2, so changing that you can remap to any range using this little trick.
TeMaToSer
(TeMaToSer)
3
Normalize axis is what you are searching guys;)
3 Likes