# How do I set up an object to rotate in place?

**URL:** <https://forums.unrealengine.com/t/how-do-i-set-up-an-object-to-rotate-in-place/278654>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [March 27, 2014, 12:56pm UTC](https://forums.unrealengine.com/t/how-do-i-set-up-an-object-to-rotate-in-place/278654 "2014-03-27T12:56:28Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![KITATUS](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kitatus/32/983160_2.png) [@KITATUS](https://forums.unrealengine.com/u/KITATUS)\
**Post date:** [March 27, 2014, 12:56pm UTC](https://forums.unrealengine.com/t/how-do-i-set-up-an-object-to-rotate-in-place/278654/1 "2014-03-27T12:56:28Z")

</div>

'Ello there!  
I’m having trouble in blueprint in getting my “Coin” object to rotate in place. It’s not doing anything. Zilch. Nudda. I seriously don’t understand what I’m doing wrong and it’s making me pull my hair out!

All I want it to do is rotate in place, like the coins in the tutorial do.

 ![2479-untitled.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/8/4/0844067857eca0ec060740f73429c0d61380c609.png)

---

<div class="post-metadata">

**Author:** ![RickRickerson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RickRickerson](https://forums.unrealengine.com/u/RickRickerson)\
**Post date:** [March 27, 2014, 1:04pm UTC](https://forums.unrealengine.com/t/how-do-i-set-up-an-object-to-rotate-in-place/278654/2 "2014-03-27T13:04:57Z")

</div>

Hi there,  
I think the main problem is you are firing your rotation off the wrong event. Currently, it’s rotating just once at the beginning of play. Instead, if you want it to keep rotating, you’ll need to key it off of an event that is going to keep repeating, like a tick. Like this:

 ![2488-rotpersecond_example.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/b/e/fbe98dd227858500d990a0e364cdd55fb0891c35.jpeg)

Good luck!

---

<div class="post-metadata">

**Author:** ![KITATUS](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kitatus/32/983160_2.png) [@KITATUS](https://forums.unrealengine.com/u/KITATUS)\
**Post date:** [March 27, 2014, 1:08pm UTC](https://forums.unrealengine.com/t/how-do-i-set-up-an-object-to-rotate-in-place/278654/3 "2014-03-27T13:08:30Z")

</div>

Still isn’t rotating. I’m not sure why, I emulated your example perfectly and it’s just not having any of it.

---

<div class="post-metadata">

**Author:** ![KITATUS](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kitatus/32/983160_2.png) [@KITATUS](https://forums.unrealengine.com/u/KITATUS)\
**Post date:** [March 27, 2014, 1:10pm UTC](https://forums.unrealengine.com/t/how-do-i-set-up-an-object-to-rotate-in-place/278654/4 "2014-03-27T13:10:05Z")

</div>

Got it working! I altered Yaw Per Second to Game Time and it’s working, just very slowly. How would I speed up the rotation?

---

<div class="post-metadata">

**Author:** ![RickRickerson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RickRickerson](https://forums.unrealengine.com/u/RickRickerson)\
**Post date:** [March 27, 2014, 1:13pm UTC](https://forums.unrealengine.com/t/how-do-i-set-up-an-object-to-rotate-in-place/278654/5 "2014-03-27T13:13:39Z")

</div>

YawPerSecond was just a variable that I made to hold the amount that you want the coin to turn per second. So, you should be able to set that to a higher value if you want the coin to turn faster and vice versa for slower.

---

<div class="post-metadata">

**Author:** ![KITATUS](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kitatus/32/983160_2.png) [@KITATUS](https://forums.unrealengine.com/u/KITATUS)\
**Post date:** [March 27, 2014, 1:20pm UTC](https://forums.unrealengine.com/t/how-do-i-set-up-an-object-to-rotate-in-place/278654/6 "2014-03-27T13:20:35Z")

</div>

Thanks man! Works great.

---

<div class="post-metadata">

**Author:** ![RickRickerson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RickRickerson](https://forums.unrealengine.com/u/RickRickerson)\
**Post date:** [March 27, 2014, 1:21pm UTC](https://forums.unrealengine.com/t/how-do-i-set-up-an-object-to-rotate-in-place/278654/7 "2014-03-27T13:21:41Z")

</div>

Awesome. Happy to help. 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dbfadb79](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dbfadb79](https://forums.unrealengine.com/u/anonymous_user_dbfadb79)\
**Post date:** [April 25, 2014, 7:11pm UTC](https://forums.unrealengine.com/t/how-do-i-set-up-an-object-to-rotate-in-place/278654/8 "2014-04-25T19:11:05Z")

</div>

What is the X Add Input and the Yaw Per Second made from. I got lost here trying to do this.

![4833-helpme.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/1/f/d1facd58684ee0c3989a03bdd5c1bf35d992ce4b.jpeg)

---

<div class="post-metadata">

**Author:** ![RickRickerson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RickRickerson](https://forums.unrealengine.com/u/RickRickerson)\
**Post date:** [April 25, 2014, 8:31pm UTC](https://forums.unrealengine.com/t/how-do-i-set-up-an-object-to-rotate-in-place/278654/9 "2014-04-25T20:31:45Z")

</div>

Hi,

YawPerSecond was a float variable that I made to store the number of degrees that I wanted the object to turn per second. Say, like 60. That ‘X’ node just multiplies two values. So, it’s multiplying the delta time (the time in seconds since the last tick) by the number of degrees that I want it to turn in a second. If the game is running at a steady 30fps, it will set the Yaw in that Make Rot to 2 degrees (.0333 seconds \* 60 degrees/second); causing the object to rotate 2 degrees each frame.

Hope that clears things up!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dbfadb79](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dbfadb79](https://forums.unrealengine.com/u/anonymous_user_dbfadb79)\
**Post date:** [April 30, 2014, 5:06pm UTC](https://forums.unrealengine.com/t/how-do-i-set-up-an-object-to-rotate-in-place/278654/10 "2014-04-30T17:06:25Z")

</div>

Ok I got it to rotate (Thanks!), But It stopped rotating after around five minutes. How do I get it to go on forever?

---

<div class="post-metadata">

**Author:** ![JigglyToes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JigglyToes](https://forums.unrealengine.com/u/JigglyToes)\
**Post date:** [February 25, 2015, 6:48am UTC](https://forums.unrealengine.com/t/how-do-i-set-up-an-object-to-rotate-in-place/278654/11 "2015-02-25T06:48:49Z")

</div>

Try using a RotatingMovement component in your blueprint. It’s designed to make something continually rotate:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

That should easily do the trick.

---

<div class="post-metadata">

**Author:** ![0vr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@0vr](https://forums.unrealengine.com/u/0vr)\
**Post date:** [November 3, 2015, 3:45am UTC](https://forums.unrealengine.com/t/how-do-i-set-up-an-object-to-rotate-in-place/278654/12 "2015-11-03T03:45:41Z")

</div>

How do you then get it to stop rotating once it’s reached the desired rotation? I’ve tried setting a branch with every kind of “Get Rotation” I could find (all 3 separately on the bottom left there) and it just ignores the condition and keeps on rotating. -\_-

 ![65334-fullsizerender.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/0/0/5005003be3c7c9322d708657e692218182393761.jpeg)

---

<div class="post-metadata">

**Author:** ![0vr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@0vr](https://forums.unrealengine.com/u/0vr)\
**Post date:** [November 3, 2015, 3:55am UTC](https://forums.unrealengine.com/t/how-do-i-set-up-an-object-to-rotate-in-place/278654/13 "2015-11-03T03:55:22Z")

</div>

Nevermind. Got it. The combination you need to do that is: GetWorldRotation for Static Mesh and Add Actor World Rotation _instead of Local Rotation_

---

<div class="post-metadata">

**Author:** ![SwordsKeyboard](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SwordsKeyboard](https://forums.unrealengine.com/u/SwordsKeyboard)\
**Post date:** [December 27, 2015, 3:20am UTC](https://forums.unrealengine.com/t/how-do-i-set-up-an-object-to-rotate-in-place/278654/14 "2015-12-27T03:20:59Z")

</div>

easy as pie, should i use timeline for a bounce?

---

<div class="post-metadata">

**Author:** ![Est\_engine](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/est_engine/32/1008648_2.png) [@Est\_engine](https://forums.unrealengine.com/u/Est_engine)\
**Post date:** [December 29, 2015, 1:12pm UTC](https://forums.unrealengine.com/t/how-do-i-set-up-an-object-to-rotate-in-place/278654/15 "2015-12-29T13:12:28Z")

</div>

Hi man , this will rotate any actor in his place forever. You can adjust the float or pin in any other var.

 ![72158-turning+forever+coin.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/8/f/98f0660460c612f4de65f1bd479c4b0812ad0f86.png)

---

<div class="post-metadata">

**Author:** ![GameWorld3D](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GameWorld3D](https://forums.unrealengine.com/u/GameWorld3D)\
**Post date:** [January 22, 2017, 3:32pm UTC](https://forums.unrealengine.com/t/how-do-i-set-up-an-object-to-rotate-in-place/278654/16 "2017-01-22T15:32:27Z")

</div>

Most Simple Solution 🙂

 ![123157-easy.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/1/f/31f3a6599cc03a340cb44b5d8a19ff606e88b674.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d6c5dc0b1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d6c5dc0b1](https://forums.unrealengine.com/u/anonymous_user_d6c5dc0b1)\
**Post date:** [April 9, 2017, 4:23pm UTC](https://forums.unrealengine.com/t/how-do-i-set-up-an-object-to-rotate-in-place/278654/17 "2017-04-09T16:23:42Z")

</div>

Can i just state if your mesh isnt moving, try changing it from static to movable mobility in the Transform section of details.

.

---

<div class="post-metadata">

**Author:** ![shad0w1989](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shad0w1989](https://forums.unrealengine.com/u/shad0w1989)\
**Post date:** [January 7, 2018, 9:16pm UTC](https://forums.unrealengine.com/t/how-do-i-set-up-an-object-to-rotate-in-place/278654/18 "2018-01-07T21:16:52Z")

</div>

For 2D Projects use this:

 ![226310-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/4/9/c49854e127803ae43944453c5ecc6f0842dd83ed.png)

“RotationSpeed” is a float value. Negative values invert the rotation direction.

Result:

![226321-roation.gif](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/9/3/2939b8a8d50a2df1ed52bc272fe4748c6fd268f0.gif)

---

<div class="post-metadata">

**Author:** ![JohnADaniels](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/johnadaniels/32/1080686_2.png) [@JohnADaniels](https://forums.unrealengine.com/u/JohnADaniels)\
**Post date:** [July 28, 2018, 3:27pm UTC](https://forums.unrealengine.com/t/how-do-i-set-up-an-object-to-rotate-in-place/278654/19 "2018-07-28T15:27:04Z")

</div>

There are so many assests on the marketplace that use tick. I swapped out the tick for the RotatingMovement component you listed for better performance.

Thanks JigglyToes

---

<div class="post-metadata">

**Author:** ![vbs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vbs](https://forums.unrealengine.com/u/vbs)\
**Post date:** [January 24, 2021, 2:58am UTC](https://forums.unrealengine.com/t/how-do-i-set-up-an-object-to-rotate-in-place/278654/20 "2021-01-24T02:58:02Z")

</div>

You can also use a Timeline, if you don’t want to use every tick, and use curves to set the speed of rotation.

 ![327919-2021-01-23-21-51-56-retrofpsstarter-unreal-editor.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/6/e/a6ea6292784334e73a50281ba69f50834f144a0a.png)

 ![327920-2021-01-23-21-53-29-retrofpsstarter-unreal-editor.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/1/2/212cf3e796c954eeab8ddb8101250b6de2af2059.png)

[Next page](https://forums.unrealengine.com/t/how-do-i-set-up-an-object-to-rotate-in-place/278654.md?page=2)
