# Actor rotation is reset every tick

**URL:** <https://forums.unrealengine.com/t/actor-rotation-is-reset-every-tick/336386>\
**Category:** Character & Animation\
**Tags:** side-scroller, rotation, capsulecomponent, unreal-engine, question, CPP\
**Created:** [October 24, 2015, 11:15pm UTC](https://forums.unrealengine.com/t/actor-rotation-is-reset-every-tick/336386 "2015-10-24T23:15:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hamokshaelzaki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hamokshaelzaki](https://forums.unrealengine.com/u/hamokshaelzaki)\
**Post date:** [October 24, 2015, 11:15pm UTC](https://forums.unrealengine.com/t/actor-rotation-is-reset-every-tick/336386/1 "2015-10-24T23:15:48Z")

</div>

My code is simple, I rotate the actor’s Yaw towards either 180 or 0

```
FRotator actorRot = GetActorRotation();
FRotator res = FMath::RInterpTo(actorRot, FRotator(0, isFacingRight ? 0 : 180, 0), DeltaTime, 20);
SetActorRotation(res);
Super::Tick(DeltaTime);

```

However … it’s not working, by debugging I found that at the beginning of every tick, the rotation is reset to 0,0,0.

---

<div class="post-metadata">

**Author:** ![hamokshaelzaki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hamokshaelzaki](https://forums.unrealengine.com/u/hamokshaelzaki)\
**Post date:** [October 24, 2015, 11:19pm UTC](https://forums.unrealengine.com/t/actor-rotation-is-reset-every-tick/336386/2 "2015-10-24T23:19:26Z")

</div>

Well, I found the problem,  
In the editor I unchecked “Pawn \> Use Controller Rotation Yaw” from the details tab of the instance you created from the class.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9b9230fc1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9b9230fc1](https://forums.unrealengine.com/u/anonymous_user_9b9230fc1)\
**Post date:** [December 12, 2015, 8:41pm UTC](https://forums.unrealengine.com/t/actor-rotation-is-reset-every-tick/336386/3 "2015-12-12T20:41:06Z")

</div>

Thanks had the same Problem 🙂

---

<div class="post-metadata">

**Author:** ![sinideas](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sinideas](https://forums.unrealengine.com/u/sinideas)\
**Post date:** [April 5, 2016, 5:08pm UTC](https://forums.unrealengine.com/t/actor-rotation-is-reset-every-tick/336386/4 "2016-04-05T17:08:30Z")

</div>

Thank you =)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e1600e71](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e1600e71](https://forums.unrealengine.com/u/anonymous_user_e1600e71)\
**Post date:** [October 25, 2016, 2:43pm UTC](https://forums.unrealengine.com/t/actor-rotation-is-reset-every-tick/336386/5 "2016-10-25T14:43:50Z")

</div>

As soon as I didn’t set myself my camera rotation anymore (no more movement or whatever) the camera rotation was reseted at a random value. This fix the issue. Thanks 🙂

---

<div class="post-metadata">

**Author:** ![okanerenli](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@okanerenli](https://forums.unrealengine.com/u/okanerenli)\
**Post date:** [December 23, 2018, 7:06pm UTC](https://forums.unrealengine.com/t/actor-rotation-is-reset-every-tick/336386/6 "2018-12-23T19:06:51Z")

</div>

Thanks for help!
