# Ignore parent rotation only on a certain axis?

**URL:** <https://forums.unrealengine.com/t/ignore-parent-rotation-only-on-a-certain-axis/468722>\
**Category:** Community & Industry Discussion\
**Tags:** parent, rotation, axis, unreal-engine, question\
**Created:** [July 27, 2020, 12:12am UTC](https://forums.unrealengine.com/t/ignore-parent-rotation-only-on-a-certain-axis/468722 "2020-07-27T00:12:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Izinor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Izinor](https://forums.unrealengine.com/u/Izinor)\
**Post date:** [July 27, 2020, 12:12am UTC](https://forums.unrealengine.com/t/ignore-parent-rotation-only-on-a-certain-axis/468722/1 "2020-07-27T00:12:46Z")

</div>

I have a child object which is constantly rotating in the Z axis. I don’t want that object to be affected by the Z-axis rotation of the parent BUT I do want it to be affected by the X and Y axis of the parent.  
Changing the rotation to absolute ignores all the axes. Is there a way to ignore only a certain axis?

EDIT: I end up using the workaroung proposed by EvilCleric:  
“One trick is to parent the child to a springarm with lenght 0, and uncheck inherit yaw.”

---

<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:** [July 27, 2020, 7:26am UTC](https://forums.unrealengine.com/t/ignore-parent-rotation-only-on-a-certain-axis/468722/2 "2020-07-27T07:26:00Z")

</div>

What about:

 ![308227-bp.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/7/9/479b4da84bed83e47486bff91957d71d53bfa464.jpeg)

EDIT: May not work so well if the whole actor is moving. It might be easier to sort out the component hierarch first and then copy the X and Y.

---

<div class="post-metadata">

**Author:** ![Izinor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Izinor](https://forums.unrealengine.com/u/Izinor)\
**Post date:** [July 27, 2020, 8:52pm UTC](https://forums.unrealengine.com/t/ignore-parent-rotation-only-on-a-certain-axis/468722/3 "2020-07-27T20:52:10Z")

</div>

Thanks for the suggestion. My child object is constantly rotating in the Z axis so it doesn’t work. What do you mean with " sort out the component hierarch"?

---

<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:** [July 27, 2020, 9:10pm UTC](https://forums.unrealengine.com/t/ignore-parent-rotation-only-on-a-certain-axis/468722/4 "2020-07-27T21:10:31Z")

</div>

Supposed to say hierarchy… 🙂

I don’t know how you stuff is rotating. Is it the whole actor or parts of a BP or…

Quite often it’s possible to rotate some components and not others, for example.

---

<div class="post-metadata">

**Author:** ![Izinor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Izinor](https://forums.unrealengine.com/u/Izinor)\
**Post date:** [July 27, 2020, 9:19pm UTC](https://forums.unrealengine.com/t/ignore-parent-rotation-only-on-a-certain-axis/468722/5 "2020-07-27T21:19:54Z")

</div>

My parent is a player character which rotate based on the player input, and my child is a simple mesh rotating all the time (like a spinning top). The problem is, when the character rotate in the opposite direction of the child, both rotations are executed at the same time and the child stop rotating for a second.

---

<div class="post-metadata">

**Author:** ![EvilCleric](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EvilCleric](https://forums.unrealengine.com/u/EvilCleric)\
**Post date:** [July 28, 2020, 6:00am UTC](https://forums.unrealengine.com/t/ignore-parent-rotation-only-on-a-certain-axis/468722/6 "2020-07-28T06:00:26Z")

</div>

One trick is to parent the child to a springarm with lenght 0, and uncheck “inherit yaw”.

---

<div class="post-metadata">

**Author:** ![Izinor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Izinor](https://forums.unrealengine.com/u/Izinor)\
**Post date:** [July 28, 2020, 10:34pm UTC](https://forums.unrealengine.com/t/ignore-parent-rotation-only-on-a-certain-axis/468722/7 "2020-07-28T22:34:41Z")

</div>

That actually works, thanks!
