BIS_fnc_interpolateVector
- Arma 3 v1.78
Function · also in Vectors · Markdown · JSON · original wiki page
Description
Interpolates vector to target, scaled by distance. Starts very fast and smoothes out.
Syntax
[currentValue, targetValue, delta, interpSpeed] call BIS_fnc_interpolateVector
Parameters:
currentValue: Array - the current valuetargetValue: Array - the target valuedelta: Number - (Optional, default 0) the delta timeinterpSpeed: Number - (Optional, default 0) the interpolation speed
Returns: Array - the interpolated value
Examples
Example 1
[[1,1,1], [20,20,20], 0.2, 0.1] call BIS_fnc_interpolateVector;
See also
BIS_fnc_interpolateConstant · BIS_fnc_interpolate · BIS_fnc_interpolateVectorConstant