'character not rotating with the direction of acceleration even though i turned on Orient Rotation To Movement - in unreal engine 4

bUseControllerRotationPitch = false;
bUseControllerRotationYaw = false;
bUseControllerRotationRoll = false;

//will let the character face the direction of acceleration/movement
GetCharacterMovement()->bOrientRotationToMovement = true;

when I compile it and run the program in ue4 it somehow doesn't rotate my character to the direction of acceleration does anyone know why? checked the character movement and orient rotation to movement is ticked, can't really seem to find use controller rotation yaw though, am I supposed to manually uncheck one of them or something?



Solution 1:[1]

For anybody still wondering in my case the problem was that UCharacterMovementComponent::RotationRate was only zero initialized.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 vikAy