Tries to reach Target based on distance from Current position, giving a nice smooth feeling when tracking a position.
Target is Kismet Math Library
X0.0
Y0.0
X0.0
Y0.0
0.0
0.0
X0.0
Y0.0
|
Current
Vector 2D Structure
|
Actual position |
|
Target
Vector 2D Structure
|
Target position |
|
Delta Time
Float
|
Time since last tick |
|
Interp Speed
Float
|
Interpolation speed, if the speed given is 0, then jump to the target. |
|
Return Value
Vector 2D Structure
|
New interpolated position |