Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.h |
Include |
#include "Kismet/KismetMathLibrary.h" |
Source |
/Engine/Source/Runtime/Engine/Private/KismetMathLibrary.cpp |
static FTransform TInterpTo
(
const FTransform & Current,
const FTransform & Target,
float DeltaTime,
float InterpSpeed
)
Tries to reach Target transform based on distance from Current position, giving a nice smooth feeling when tracking a position.
New interpolated transform
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. |