Hey everyone,
I’m having an issue with my character’s rotation in Unreal Engine: when turning, the character jitters and I can’t figure out why.
Here’s my current character setup:
CameraBoom = CreateDefaultSubobject<USpringArmComponent>(TEXT("Camera Boom"));
CameraBoom->SetupAttachment(RootComponent);
CameraBoom->bUsePawnControlRotation = true;
ViewCam = CreateDefaultSubobject<UCameraComponent>(TEXT("View Camera"));
ViewCam->SetupAttachment(CameraBoom, USpringArmComponent::SocketName);
ViewCam->bUsePawnControlRotation = false;
bUseControllerRotationYaw = false;
GetCharacterMovement()->bOrientRotationToMovement = true;
GetCharacterMovement()->bUseControllerDesiredRotation = false;
GetCharacterMovement()->RotationRate = FRotator(0.0f, 1440.0f, 0.0f);
Disabling Orient Rotation to Movement removes the jitter, which is really weird. If I enable bUseControllerRotationYaw, the jitter comes back
Has anyone experienced jitter with “Orient Rotation to Movement” before and know how to fix it? Thanks in advance!