UKismetMathLibrary::RInterpTo

Tries to reach Target rotation based on Current rotation, giving a nice smooth feeling when rotating to Target rotation.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.h

Include

#include "Kismet/KismetMathLibrary.h"

Source

/Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.inl

Syntax

static FRotator RInterpTo
(
    FRotator Current,
    FRotator Target,
    float DeltaTime,
    float InterpSpeed
)

Remarks

Tries to reach Target rotation based on Current rotation, giving a nice smooth feeling when rotating to Target rotation.

Returns

New interpolated position

Parameters

Parameter

Description

Current

Actual rotation

Target

Target rotation

DeltaTime

Time since last tick

InterpSpeed

Interpolation speed, if the speed given is 0, then jump to the target.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss