No matter what value I put in, the door opens really fast. I’m using UE 4.26. I also tried using Lerp(), FInterpConstantTo() and FinterpTo()
Here is my current code:
void UOpenDoor::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction)
{
Super::TickComponent(DeltaTime, TickType, ThisTickFunction);
float CurrentyYaw = GetOwner()->GetActorRotation().Yaw;
FRotator OpenDoor(0.f, 0.f, 0.f);
OpenDoor.Yaw = FMath::FInterpTo(CurrentyYaw, TargetYaw, DeltaTime, 10);
GetOwner()->SetActorRotation(OpenDoor);
}