# How do I rotate an object along the world axis?

**URL:** <https://forums.unrealengine.com/t/how-do-i-rotate-an-object-along-the-world-axis/481105>\
**Category:** Community & Industry Discussion\
**Tags:** rotator, rotation, unreal-engine, question\
**Created:** [March 30, 2021, 12:57pm UTC](https://forums.unrealengine.com/t/how-do-i-rotate-an-object-along-the-world-axis/481105 "2021-03-30T12:57:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![indivelope](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/indivelope/32/974286_2.png) [@indivelope](https://forums.unrealengine.com/u/indivelope)\
**Post date:** [March 30, 2021, 12:57pm UTC](https://forums.unrealengine.com/t/how-do-i-rotate-an-object-along-the-world-axis/481105/1 "2021-03-30T12:57:50Z")

</div>

When I rotate the balloon along the green axis, it follows the correct angle. But if I rotate the balloon on the blue axis (So the white bar is pointing to the right), and then rotate alone the green axis, the balloon rotates along the red axis (towards the white bar). It is meant to always rotate towards the green axis.

How do I accommodate for this?

I am using this simple node.

 ![334113-c.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/c/1/cc14bdee6f2fad25e96ddb1d9601b963c0bf5c63.png)

 ![334114-a.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/3/d/b3de1e77cfd129a7a844a1df61d72b2389660698.jpeg)

 ![334115-b.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/3/e/e3ea54a271e4441e2ddc3e1b8cb5afd90c4de1cd.png)

][3]

---

<div class="post-metadata">

**Author:** ![KuroPhoenix7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KuroPhoenix7](https://forums.unrealengine.com/u/KuroPhoenix7)\
**Post date:** [March 30, 2021, 1:37pm UTC](https://forums.unrealengine.com/t/how-do-i-rotate-an-object-along-the-world-axis/481105/2 "2021-03-30T13:37:31Z")

</div>

Hey have you tried using [RotatorFromAxisAndAngle](https://docs.unrealengine.com/en-US/BlueprintAPI/Math/Vector/RotatorfromAxisandAngle/index.html)?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [March 30, 2021, 2:33pm UTC](https://forums.unrealengine.com/t/how-do-i-rotate-an-object-along-the-world-axis/481105/3 "2021-03-30T14:33:16Z")

</div>

The problem is that, once you’ve rotated the balloon in one axis, rotating in another will require updates to all 3.

What you can do is AddLocalRotation to the ballon. That will always work irrespective of the values of the other axis, until you get to -+180.

---

<div class="post-metadata">

**Author:** ![indivelope](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/indivelope/32/974286_2.png) [@indivelope](https://forums.unrealengine.com/u/indivelope)\
**Post date:** [March 30, 2021, 2:58pm UTC](https://forums.unrealengine.com/t/how-do-i-rotate-an-object-along-the-world-axis/481105/4 "2021-03-30T14:58:20Z")

</div>

Ahh okay thanks, I will try that tomorrow. I assumed local rotation was for children so I never tried using it.

---

<div class="post-metadata">

**Author:** ![indivelope](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/indivelope/32/974286_2.png) [@indivelope](https://forums.unrealengine.com/u/indivelope)\
**Post date:** [March 30, 2021, 3:01pm UTC](https://forums.unrealengine.com/t/how-do-i-rotate-an-object-along-the-world-axis/481105/5 "2021-03-30T15:01:02Z")

</div>

I shall try this tomorrow 🙂

---

<div class="post-metadata">

**Author:** ![indivelope](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/indivelope/32/974286_2.png) [@indivelope](https://forums.unrealengine.com/u/indivelope)\
**Post date:** [March 31, 2021, 1:15pm UTC](https://forums.unrealengine.com/t/how-do-i-rotate-an-object-along-the-world-axis/481105/6 "2021-03-31T13:15:41Z")

</div>

It gave the same result as the pics.

---

<div class="post-metadata">

**Author:** ![indivelope](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/indivelope/32/974286_2.png) [@indivelope](https://forums.unrealengine.com/u/indivelope)\
**Post date:** [March 31, 2021, 1:16pm UTC](https://forums.unrealengine.com/t/how-do-i-rotate-an-object-along-the-world-axis/481105/7 "2021-03-31T13:16:22Z")

</div>

It gave the same result as the pics. Strange as the answer from Kuro also has the same result.
