UKismetMathLibrary::FInterpTo

Interpolation functions Tries to reach Target 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/Classes/Kismet/KismetMathLibrary.inl

Syntax

static float FInterpTo
(
    float Current,
    float Target,
    float DeltaTime,
    float InterpSpeed
)

Remarks

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

Returns

New interpolated position

Parameters

Parameter

Description

Current

Actual position

Target

Target position

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