# How to set different World and actor rotations?

**URL:** <https://forums.unrealengine.com/t/how-to-set-different-world-and-actor-rotations/400358>\
**Category:** Community & Industry Discussion\
**Tags:** pitch, rotation, actor-rotation, roll, unreal-engine, question, yaw\
**Created:** [July 19, 2017, 12:16pm UTC](https://forums.unrealengine.com/t/how-to-set-different-world-and-actor-rotations/400358 "2017-07-19T12:16:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_37b96c7c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_37b96c7c](https://forums.unrealengine.com/u/anonymous_user_37b96c7c)\
**Post date:** [July 19, 2017, 12:16pm UTC](https://forums.unrealengine.com/t/how-to-set-different-world-and-actor-rotations/400358/1 "2017-07-19T12:16:50Z")

</div>

Hi,  
I’m having a problem differenciating both world and actor rotations. I am programming using blueprints and I’m constantly updating the actor local rotations when specific input events, for each rotation, are triggered. What should happen is:

- If actor does a pitch, the inertial frame (world) sees the actor doing effectively a pitch;
- If actor does a pitch (with an angle less than 90 degrees) and then a roll, the inertial frame should see it doing these rotations, but then also an yaw rotation.

The issue is that when pitch and roll rotations are produced on actor frame (locally), it’s appearing also that I’ve made an yaw rotation, which I haven’t.

So far I’ve tried using addActorLocalRotation, setActorRelativeRotation and also convert actor to world rotations “manually” but nothing works.

Sorry for the long text. I would really appreciate some help on the matter.

Best regards,

---

<div class="post-metadata">

**Author:** ![BenVlodgi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/benvlodgi/32/1194567_2.png) [@BenVlodgi](https://forums.unrealengine.com/u/BenVlodgi)\
**Post date:** [July 19, 2017, 3:06pm UTC](https://forums.unrealengine.com/t/how-to-set-different-world-and-actor-rotations/400358/2 "2017-07-19T15:06:11Z")

</div>

- Local Rotation is relative to the Actor’s Origin.
- World Rotation is relative to the World Origin.

Depending on how you have your BP structured, the rest of the actor’s components might not be attached to the scene root. If this was the case, then setting the actor location or rotation will have no affect since the children are not parented.

- This would happen if a child component was a physics object.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_37b96c7c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_37b96c7c](https://forums.unrealengine.com/u/anonymous_user_37b96c7c)\
**Post date:** [July 19, 2017, 3:40pm UTC](https://forums.unrealengine.com/t/how-to-set-different-world-and-actor-rotations/400358/3 "2017-07-19T15:40:40Z")

</div>

Yes, that can be the case. Thanks.

---

<div class="post-metadata">

**Author:** ![BenVlodgi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/benvlodgi/32/1194567_2.png) [@BenVlodgi](https://forums.unrealengine.com/u/BenVlodgi)\
**Post date:** [July 20, 2017, 3:38pm UTC](https://forums.unrealengine.com/t/how-to-set-different-world-and-actor-rotations/400358/4 "2017-07-20T15:38:06Z")

</div>

If this was the answer, could you mark it as such?
