# 'Normalising' GetWorldRotation to 0-360?

**URL:** <https://forums.unrealengine.com/t/normalising-getworldrotation-to-0-360/349876>\
**Category:** Blueprint\
**Tags:** timeline, unreal-engine, Blueprint, question\
**Created:** [March 8, 2016, 1:22am UTC](https://forums.unrealengine.com/t/normalising-getworldrotation-to-0-360/349876 "2016-03-08T01:22:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamesonart](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jamesonart](https://forums.unrealengine.com/u/jamesonart)\
**Post date:** [March 8, 2016, 1:22am UTC](https://forums.unrealengine.com/t/normalising-getworldrotation-to-0-360/349876/1 "2016-03-08T01:22:59Z")

</div>

Hi guys!

So I’m setting up a blueprint to have a planet orbit a sun using a timeline.

Here is my blueprint:

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/6/4/b6408f1f4f385421c2e3aff9bb396018140db586.png)

Basically all it’s doing is lerping between the current rotation of the Earth (EarthRotation) and a location I’d like to have it (EarthOrbitSpeed) in over the period of the timeline. From there, when the timeline finishes I get the world location of the Earth and save that to a variable, and update the EarthOrbitSpeed variable, so when the timeline replays it just adds on to the previous values so it seemlessly rotates over and over again.

However I’ve run into a problem I didn’t take into account, which is I assumed that GetWorldRotation returns a value of 0-360, which it doesn’t. Seeing as how its range is -180 to 180, I get unwanted results since the math ends up wrong.

So my question is, is there a way to ‘normalise’ the GetWorldRotation values to be 0-360? Im sure the answers simple, so I thought I’d check here first.

I had thought of breaking a float in two and having seperate execs for each half of the cycle, but that’ll be my last resort.

I appreciate your time, thanks!

---

<div class="post-metadata">

**Author:** ![phoboz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phoboz](https://forums.unrealengine.com/u/phoboz)\
**Post date:** [March 8, 2016, 2:11am UTC](https://forums.unrealengine.com/t/normalising-getworldrotation-to-0-360/349876/2 "2016-03-08T02:11:52Z")

</div>

Try this

 ![81345-untitled.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/f/e/8fe36243b8163a53f7c59dcddeea4b4de8103963.png)

---

<div class="post-metadata">

**Author:** ![jamesonart](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jamesonart](https://forums.unrealengine.com/u/jamesonart)\
**Post date:** [March 8, 2016, 2:17am UTC](https://forums.unrealengine.com/t/normalising-getworldrotation-to-0-360/349876/3 "2016-03-08T02:17:21Z")

</div>

Ah of course, modulus.

Thank you 🙂

---

<div class="post-metadata">

**Author:** ![Nizami\_Nz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nizami\_Nz](https://forums.unrealengine.com/u/Nizami_Nz)\
**Post date:** [May 26, 2025, 7:58pm UTC](https://forums.unrealengine.com/t/normalising-getworldrotation-to-0-360/349876/4 "2025-05-26T19:58:24Z")

</div>

Now 2025.  
It’s best answer)

You can use also “Normolize axis” blueprint

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/2/c/d2ca8399ecbb5b1a15ea483ff2b561667380897e.png)
