UKismetMathLibrary::TInterpTo

Tries to reach Target transform based on distance from Current position, giving a nice smooth feeling when tracking a position.

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/Private/KismetMathLibrary.cpp

Syntax

static FTransform TInterpTo
(
    const FTransform & Current,
    const FTransform & Target,
    float DeltaTime,
    float InterpSpeed
)

Remarks

Tries to reach Target transform based on distance from Current position, giving a nice smooth feeling when tracking a position.

Returns

New interpolated transform

Parameters

Parameter

Description

Current

Actual transform

Target

Target transform

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