Download

Why this

// Called every frame
void APlayerCharacterBase::Tick(float DeltaTime)
{
Super::Tick(DeltaTime);

debug = 1;

if (debug)
{
    FRotator newRoot = RootComponent->RelativeRotation;
    newRoot.Add(0.0f, DeltaTime * 360.0f, 0.0f);

    UE_LOG(LogTemp, Log, TEXT("root : %lf"), newRoot.Yaw);

    RootComponent->SetRelativeRotation(newRoot);

    UE_LOG(LogTemp, Log, TEXT("root : %lf"), newRoot.Yaw);
}

}