# How to make object rotate around another object?

**URL:** <https://forums.unrealengine.com/t/how-to-make-object-rotate-around-another-object/339400>\
**Category:** Community & Industry Discussion\
**Tags:** unreal-engine, rotate, question\
**Created:** [November 23, 2015, 6:40am UTC](https://forums.unrealengine.com/t/how-to-make-object-rotate-around-another-object/339400 "2015-11-23T06:40:31Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_73094a6c1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_73094a6c1](https://forums.unrealengine.com/u/anonymous_user_73094a6c1)\
**Post date:** [November 23, 2015, 6:40am UTC](https://forums.unrealengine.com/t/how-to-make-object-rotate-around-another-object/339400/1 "2015-11-23T06:40:31Z")

</div>

![67719-rt.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/6/4/46479fe24ead670114e81f8f9560352aa5df4509.jpeg)

![r.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/4/c4f75af861f0194420941bb1aa21919b8401d78a.jpeg)

i want the parent to just rotate around the child object when player holds down Q, when they let go of Q the rotation stops.

---

<div class="post-metadata">

**Author:** ![JulianS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JulianS](https://forums.unrealengine.com/u/JulianS)\
**Post date:** [November 23, 2015, 6:46am UTC](https://forums.unrealengine.com/t/how-to-make-object-rotate-around-another-object/339400/2 "2015-11-23T06:46:13Z")

</div>

You could switch the parent child relationship, so that the camera is the child of the sphere. Then simply rotate the sphere and the camera will follow.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_73094a6c1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_73094a6c1](https://forums.unrealengine.com/u/anonymous_user_73094a6c1)\
**Post date:** [November 23, 2015, 7:04am UTC](https://forums.unrealengine.com/t/how-to-make-object-rotate-around-another-object/339400/3 "2015-11-23T07:04:59Z")

</div>

I’d rather not resort to tricks or hack jobs.

i know the world location of the sphere and the parent. There must be some kind of node that does this.

---

<div class="post-metadata">

**Author:** ![JulianS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JulianS](https://forums.unrealengine.com/u/JulianS)\
**Post date:** [November 23, 2015, 7:31am UTC](https://forums.unrealengine.com/t/how-to-make-object-rotate-around-another-object/339400/4 "2015-11-23T07:31:19Z")

</div>

Do you want the camera facing the sphere while rotating?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_73094a6c1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_73094a6c1](https://forums.unrealengine.com/u/anonymous_user_73094a6c1)\
**Post date:** [November 23, 2015, 7:56am UTC](https://forums.unrealengine.com/t/how-to-make-object-rotate-around-another-object/339400/5 "2015-11-23T07:56:13Z")

</div>

That would be great. Everywhere I look, people are trying to figure this out, but can’t.

---

<div class="post-metadata">

**Author:** ![JulianS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JulianS](https://forums.unrealengine.com/u/JulianS)\
**Post date:** [November 23, 2015, 9:42am UTC](https://forums.unrealengine.com/t/how-to-make-object-rotate-around-another-object/339400/6 "2015-11-23T09:42:25Z")

</div>

The thing is what you called hacking and tricking is the most simple and indeed most established way to rotate an object around a pivot point.  
Everything else would be tricking and hacking. So if you did not set up anything yet i strongly recomment to do it this way.

The problem is you want to rotate the parent around the child. So you make the parent constrained to the child. But as the child is constrained by the parent (as it is its child) you will get an dependency loop. And loops are always bad! This could go well if you do not move the child while rotating the parent (however still hacky) but as soon as you do both it will stop working correctly!

You could imagine a parent child relationship as a pregnant woman. Whereas the woman is the parent (obviously ;)) and the baby is the child. Now you see that you can’t rotate the child around the parent, or at least it would be somewhat unnatural! 😉

See this link for the Parent Child analogy. 😉

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/a/28a75a8060ea1fe84c8ce0c4cac8f01ebf7d75ce.jpeg "Humane Rigging: chapter 01, video 02") ](https://www.youtube.com/watch?v=njT82MeJVtY)

Hope it helped!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_73094a6c1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_73094a6c1](https://forums.unrealengine.com/u/anonymous_user_73094a6c1)\
**Post date:** [November 25, 2015, 2:38pm UTC](https://forums.unrealengine.com/t/how-to-make-object-rotate-around-another-object/339400/7 "2015-11-25T14:38:32Z")

</div>

This is the worst answer I’ve ever seen in the history of answering a question.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_73094a6c1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_73094a6c1](https://forums.unrealengine.com/u/anonymous_user_73094a6c1)\
**Post date:** [November 25, 2015, 2:49pm UTC](https://forums.unrealengine.com/t/how-to-make-object-rotate-around-another-object/339400/8 "2015-11-25T14:49:47Z")

</div>

Here is how you rotate an actor/pawn/object whatever around any other actor/pawn/object. With this code you can rotate anything with a vector3 worldLocation around anything else that has a vector3 worldLocation. Hopefully this function gets implemented as a core function in UE4.

 ![68116-1f1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/6/7/5675d664836c77522fcb2375cc4108682801d705.jpeg)

You can call the event from say a turnLeft turnRight axis event for q and e rotational movement. The direction is based upon the axis you feed it, positive makes you revolve around the object to the right, negative left.

keywords - rotate around an actor object pawn

**For years man has yearned to rotate objects around other objects in UE4, now that dream is a reality.**

---

<div class="post-metadata">

**Author:** ![JulianS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JulianS](https://forums.unrealengine.com/u/JulianS)\
**Post date:** [November 25, 2015, 5:06pm UTC](https://forums.unrealengine.com/t/how-to-make-object-rotate-around-another-object/339400/9 "2015-11-25T17:06:36Z")

</div>

Seriously? That rude? I just tried to help you (voluntarily) and that is your reaction to it? Dude, thats sadden me!

---

<div class="post-metadata">

**Author:** ![mikeferchak](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mikeferchak](https://forums.unrealengine.com/u/mikeferchak)\
**Post date:** [January 10, 2017, 4:38am UTC](https://forums.unrealengine.com/t/how-to-make-object-rotate-around-another-object/339400/10 "2017-01-10T04:38:21Z")

</div>

Here’s my variation of this. It’s for snap-rotating the player’s VR origin around the current camera position so that the player’s absolute camera location stays the same.

 ![121442-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/0/e/80ee59309022b136576010072908a6cc0e48844a.png)

---

<div class="post-metadata">

**Author:** ![IronBoundManzer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IronBoundManzer](https://forums.unrealengine.com/u/IronBoundManzer)\
**Post date:** [January 12, 2017, 12:09pm UTC](https://forums.unrealengine.com/t/how-to-make-object-rotate-around-another-object/339400/11 "2017-01-12T12:09:00Z")

</div>

Doesn’t Work !

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_73094a6c1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_73094a6c1](https://forums.unrealengine.com/u/anonymous_user_73094a6c1)\
**Post date:** [November 12, 2017, 8:24am UTC](https://forums.unrealengine.com/t/how-to-make-object-rotate-around-another-object/339400/12 "2017-11-12T08:24:08Z")

</div>

I wonder if they changed something in the new versions of EU? It worked perfectly for me when I used it.

---

<div class="post-metadata">

**Author:** ![Derjyn](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/derjyn/32/931618_2.png) [@Derjyn](https://forums.unrealengine.com/u/Derjyn)\
**Post date:** [February 11, 2018, 11:15am UTC](https://forums.unrealengine.com/t/how-to-make-object-rotate-around-another-object/339400/13 "2018-02-11T11:15:51Z")

</div>

I know it’s been some time, but I wanted to say that your solution looked fine, so I built that up into a function in a project I was working on to test it, and I can confirm your setup works as intended.

Hopefully someone else who stumbles upon this can use it, and isn’t turned off by others saying it isn’t working.

---

<div class="post-metadata">

**Author:** ![Art8Vandelay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Art8Vandelay](https://forums.unrealengine.com/u/Art8Vandelay)\
**Post date:** [September 20, 2021, 12:46pm UTC](https://forums.unrealengine.com/t/how-to-make-object-rotate-around-another-object/339400/14 "2021-09-20T12:46:24Z")

</div>

This works perfectly in 4.26 too

---

<div class="post-metadata">

**Author:** ![Alpha\_Falkon11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alpha\_Falkon11](https://forums.unrealengine.com/u/Alpha_Falkon11)\
**Post date:** [February 14, 2024, 3:35pm UTC](https://forums.unrealengine.com/t/how-to-make-object-rotate-around-another-object/339400/15 "2024-02-14T15:35:00Z")

</div>

Can anyone help me with this in 5.3? Im trying to get a camera to orbit around an object and once the player moves over to focus on a new object it focuses on the new object and orbits around it. Kind of like a drone.

---

<div class="post-metadata">

**Author:** ![spitket](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@spitket](https://forums.unrealengine.com/u/spitket)\
**Post date:** [October 18, 2024, 3:00pm UTC](https://forums.unrealengine.com/t/how-to-make-object-rotate-around-another-object/339400/16 "2024-10-18T15:00:22Z")

</div>

Hello this is gnna be my first repply on a post on the forum

I used the node the first screenshot of mr. @anonymous_user_73094a6c1 .  
Took me literally one try, first I stated I needed to do what is on the comments. Then read this forum. Then builded really quick just to check if one of the nodes in this page had some use to get the vector I was looking for and it just solved all the hard part.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/4/d/d4d3f07c96c6d0eef46f42e2abc8ecaa26b64eac.png)  
This i what we are looking for (I THINK) I’m using an array because I want more than one actor to rotate so that’s why the array. You can get it more simpler  
Hope this is what the forum needs and not to be just misinterpreting the subject of this thread. Cheers!

---

<div class="post-metadata">

**Author:** ![spitket](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@spitket](https://forums.unrealengine.com/u/spitket)\
**Post date:** [October 18, 2024, 3:38pm UTC](https://forums.unrealengine.com/t/how-to-make-object-rotate-around-another-object/339400/17 "2024-10-18T15:38:56Z")

</div>

I correct myself. Sorry

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/9/7/0970513089657690a0a6b7b3e1a4479d66e845e1.png)  
IA\_Rotate is 1d (float)
