FTransform UKismetMathLibrary::TInterpTo(const FTransform& Current, const FTransform& Target, float DeltaTime, float InterpSpeed) { if( InterpSpeed <= 0.f ) { return Target; } const float Alpha = FClamp(DeltaTime * InterpSpeed, 0.f, 1.f); return TLerp(Current, Target, Alpha); }
FTransform UKismetMathLibrary::TEase(const FTransform& A, const FTransform& B, float Alpha, TEnumAsByte<EEasingFunc::Type> EasingFunc, float BlendExp, int32 Steps) { return TLerp(A, B, EaseAlpha(Alpha, EasingFunc, BlendExp, Steps)); }