# Smoothly returning control rotation with delta to original rotation while aiming

**URL:** <https://forums.unrealengine.com/t/smoothly-returning-control-rotation-with-delta-to-original-rotation-while-aiming/421030>\
**Category:** Editor Scripting\
**Tags:** rotator, aim, interpolation, unreal-engine, question, rinterpto\
**Created:** [March 27, 2018, 2:46pm UTC](https://forums.unrealengine.com/t/smoothly-returning-control-rotation-with-delta-to-original-rotation-while-aiming/421030 "2018-03-27T14:46:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_873273371](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_873273371](https://forums.unrealengine.com/u/anonymous_user_873273371)\
**Post date:** [March 27, 2018, 2:46pm UTC](https://forums.unrealengine.com/t/smoothly-returning-control-rotation-with-delta-to-original-rotation-while-aiming/421030/1 "2018-03-27T14:46:28Z")

</div>

Hi,

I have a recoil system that adds recoil in form of control rotation and it works great but I want to return the rotation to where I would aim WITHOUT the recoil I added (much like CS:GO where the aim “cools down”).  
I have the added recoil saved as a rotation delta but I have problems with interpolating it back because I still want to be able to aim while it’s returning. I have everything, just the interpolation doesn’t seem to work as you can see.

Here is what I want without interpolation:

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/7/2/3722108188bd675e568de9acacce17be42ed83e7.gif)

These are the variables I can work with:

- The delta rotation (total recoil added during shooting)

- “Origin” Control Rotation without recoil which still gets updated while aiming

- obviously current control rotation of my pawn

I tried interpolating the delta to zero and and adding it to the origin control rotation but when I set the new delta rotation from the RInterpTo it jitters the camera a lot and is way to fast, no matter how low I set the Interp Speed. When I use lerp with a timeline it somehow inverts the control pitch, so I can’t aim while it is returning.

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/f/d/5fd30d270b4ff67121449045950eb19180be2e81.png)

You can’t see that well but it jitters a lot and the control pitch is inverted again (I aim down when I pull my mouse up).

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/3/c/93c3beaca70e77fe8b1b2d420e601b2b7efdf563.gif)

The “Add Rotators” Node is made by myself, it just adds the floats because I don’t want to combine the rotators.
