Description
Interpolates scalar to target, starts fast, eases out
Syntax
[currentValue, targetValue, delta, interpSpeed] call BIS_fnc_interpolate
Parameters:
currentValue: Number - the current valuetargetValue: Number - the target valuedelta: Number - (Optional, default 0) the delta timeinterpSpeed: Number - (Optional, default 0) the interpolation speed
Returns: Number - the interpolated value
Examples
Example 1
private _value = [4,8,0.2,0.1] call BIS_fnc_interpolate;
See also
BIS_fnc_interpolateConstant · BIS_fnc_interpolateVector · BIS_fnc_interpolateVectorConstant