How to make the transition between Use Controller Rotation Yaw on and off smooth

Hello everyone, I would like to know how I can make the transition smooth between turning Use Controller Rotation Yaw on and off, as you can see in the video, the player snaps back 180°.
I turn it off at the start of the roll, and turn it back on at the end off the roll

Thanks in advance, help is much appreciated

1 Like

Hey there @Faze_Kaas! Looks like the video link didn’t make it in. There’s a couple of ways to go about this. Depends on how your movement system works and how you want your roll to work. Your video may have answered these but it didn’t look like it made it through.

One way is taking the input values and lerping the characters rotation to where the controller is pointing after the roll. The positives is you control how smooth and how quickly this occurs. Downside is that lerp time if say the player flicks back the other direction at the end of the lerp time they will still snap albeit smoother. (that can be worked with by disabling the movement rotations passing in until the roll is fully complete)

1 Like

Hey, Sorry thought I attached it, might have forgot to do that, I have uploaded it again, should be there, here is another video of what I tried to make in the meantime:

When I use Actor rotation instead of Use Controller Rotation Yaw it works perfectly but there is another issue when I only use Actor rotation so what I tried to do is use Actor rotation during the roll, and after the roll go back so Use Controller Rotation Yaw, and set a small delay after the roll has ended, and after that delay I set Use Controller Rotation Yaw back to true, but then it still snaps a little bit at the end, it is better, but it is the best when only using Actor Rotation, but I cant since something else works incorrectly with that.

Or maybe you know how to fix that issue? I will send a video

Thanks

When I use Actor Rotation only, no Use Controller Rotation Yaw, this happens:

In both parts I hold down W and D, so walking forward right

The first part is with Use Controller Rotation Yaw, and the second part is with Actor Rotation, the first part is how I would like it to be, do you perhaps know how I can get that result with Actor Rotation only?

Thanks


This fixed it
Thanks for the help and time :slight_smile:

1 Like

Awesome! I was just coming back to suggest how I’d do the interpolation myself, but your way is actually a bit cleaner than mine anyway.

1 Like