# Rotate multiple objects with different orientations in the same direction. Maintain Offsets

**URL:** <https://forums.unrealengine.com/t/rotate-multiple-objects-with-different-orientations-in-the-same-direction-maintain-offsets/624224>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE5-0, question, Blueprint\
**Created:** [August 8, 2022, 9:45pm UTC](https://forums.unrealengine.com/t/rotate-multiple-objects-with-different-orientations-in-the-same-direction-maintain-offsets/624224 "2022-08-08T21:45:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TinyTracker1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TinyTracker1](https://forums.unrealengine.com/u/TinyTracker1)\
**Post date:** [August 8, 2022, 9:45pm UTC](https://forums.unrealengine.com/t/rotate-multiple-objects-with-different-orientations-in-the-same-direction-maintain-offsets/624224/1 "2022-08-08T21:45:14Z")

</div>

I have multiple objects that are scattered. I need to rotate them in the same direction regardless of the orientation of the local axis of the scattered objects. The rotated objects need to maintain their offsets.

---

<div class="post-metadata">

**Author:** ![kribbeck](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kribbeck](https://forums.unrealengine.com/u/kribbeck)\
**Post date:** [August 8, 2022, 10:33pm UTC](https://forums.unrealengine.com/t/rotate-multiple-objects-with-different-orientations-in-the-same-direction-maintain-offsets/624224/2 "2022-08-08T22:33:31Z")

</div>

@TinyTracker1 Hey! It depends a little on what data you have at hand. You need to first build your new Rotator and then apply that rotator to each actor, by using the SetActorRotation node.

In this example I have two sample actors and I rotate all the other actor in the direction that points from the first sample actor to the second.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/a/9/da94cce46cde4e520c16828fcff216a458346ab3.jpeg)

If you already have an actor pointing in the direction that you want, you can pass that rotation directly into the SetActorRotation node.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/5/7/b5718cdb3b17a0de5b33ffb67cbc103b50718c51.jpeg)

Hope this helps!

---

<div class="post-metadata">

**Author:** ![TinyTracker1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TinyTracker1](https://forums.unrealengine.com/u/TinyTracker1)\
**Post date:** [August 9, 2022, 3:02pm UTC](https://forums.unrealengine.com/t/rotate-multiple-objects-with-different-orientations-in-the-same-direction-maintain-offsets/624224/3 "2022-08-09T15:02:40Z")

</div>

I don’t understand what this is. How does this maintain the offset of the objects current orientation while rotating in the proper direction? This looks like it just copies the orientation from one object to another.

---

<div class="post-metadata">

**Author:** ![kribbeck](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kribbeck](https://forums.unrealengine.com/u/kribbeck)\
**Post date:** [August 10, 2022, 2:18pm UTC](https://forums.unrealengine.com/t/rotate-multiple-objects-with-different-orientations-in-the-same-direction-maintain-offsets/624224/4 "2022-08-10T14:18:31Z")

</div>

I think I didn’t understand the question then, what did you mean by

> [@TinyTracker1](#):
>
> The rotated objects need to maintain their offsets.

And I see you marked it as resolved, so it actually helped you get your code working?

---

<div class="post-metadata">

**Author:** ![TinyTracker1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TinyTracker1](https://forums.unrealengine.com/u/TinyTracker1)\
**Post date:** [August 10, 2022, 2:52pm UTC](https://forums.unrealengine.com/t/rotate-multiple-objects-with-different-orientations-in-the-same-direction-maintain-offsets/624224/5 "2022-08-10T14:52:17Z")

</div>

Unfortunately that was a misclick. (I’m not used to the way these forums do things) And I had to create the topic again. But the good news is that someone was able to show me how to solve the problem. But I do appreciate that you tried though. (the same question but a bit more specific)

> [@Rotate objects while maintaining rotation offset](https://forums.unrealengine.com/t/rotate-objects-while-maintaining-rotation-offset/624827):
>
> I am trying to remake a game I made in unity, years ago and I am perplexed that I cannot find anything on vector rotation with maintaining a rotation offset in unreal.

**Nodes “Add actor World rotation” instead of “Add actor local rotation”**
