Smooth rotation when bUseControllerRotationYaw is toggled.

Hello!

I wish to have my camera rotate freely around the character when the player is standing still, but have the character directly follow the camera rotation during movement.

Currently I achieve this by toggling bUseControllerRotationYaw on or off. However, when it’s toggled on, the character instantly snaps to the rotation on the camera, which is very jarring.

What function uses the bool? How do I override it so that the rotation interpolated instead of absolute without breaking it? Or are there other settings I can use to achieve this?

I found and tried to use “bUseControllerDesiredRotation” instead, which seems to be exactly what I’m looking for, but it doesn’t seem to be possible to toggle it on the fly. It’s either on from the start or off from the start. If I enable it during gameplay, it will stay off.