Smoothly returning control rotation with delta to original rotation while aiming
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: These are the variables I can work with:
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. The "Add Rotators" Node is made by myself, it just adds the floats because I don't want to combine the rotators.
(comments are locked)
|
Follow this question
Once you sign in you will be able to subscribe for any updates here