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 FVector2D Vector2DInterpTo
&40;
FVector2D Current,
FVector2D Target,
float DeltaTime,
float InterpSpeed
&41;
Remarks
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. |