Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Kismet > UKismetMathLibrary
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 |
static double FInterpTo
&40;
double Current,
double Target,
double DeltaTime,
double InterpSpeed
&41;
Remarks
Interpolation functions Tries to reach Target based on distance from Current position, giving a nice smooth feeling when tracking a position. New interpolated position
Parameters
Name | 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. |