# RInterp To Control Rotation not working

**URL:** <https://forums.unrealengine.com/t/rinterp-to-control-rotation-not-working/473815>\
**Category:** Editor Scripting\
**Tags:** control-rotation, interpolation, unreal-engine, question, Blueprint, rinterpto\
**Created:** [November 1, 2020, 3:55am UTC](https://forums.unrealengine.com/t/rinterp-to-control-rotation-not-working/473815 "2020-11-01T03:55:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_f6de3eed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f6de3eed](https://forums.unrealengine.com/u/anonymous_user_f6de3eed)\
**Post date:** [November 1, 2020, 3:55am UTC](https://forums.unrealengine.com/t/rinterp-to-control-rotation-not-working/473815/1 "2020-11-01T03:55:24Z")

</div>

Inside a macro, I’m using a Set Control Rotation linked to an RInterp To in order to rotate my player’s camera. The blueprint used for this process is linked below.

 ![320743-brokenrinterp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/c/4/4c47edb560dc0c5f8e450d3023e37430ad9567dc.png)

As you can see, at the beginning, I create a Local Rotator which is assigned to the current Control Rotation rotated 120 degrees in the Z axis, which is my interp target. Then I start a loop in which I Set Control Rotation using an RInterp from the current control rotation to this Local Rotator.

This works as intended (rotating the Control 120 degrees in the X axis) except when the Control Rotation’s Yaw reaches 179.999 or -179.999. At that point it gets stuck until I click outside of the playable Window, at which point it finishes its rotation. The only way I was able to avoid this problem was to increase the Interp Speed to 120, but that is much too fast for the effect I want.

If it helps in solving this issue, I also have this script in my Player Controller run before this scene:

 ![320744-disablecameralimits.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/e/7/ce710e688b6975064056a6a47e2dcfaf16d145b6.png)
