Arma 3 Scripting

BIS_fnc_lerpVector

  • Arma 3 v1.78

Function · Markdown · JSON · original wiki page

Description

Given two different vectors A and B, think of a straight line drawn between them, alpha saying how far along that line is the wanted vector.

Syntax

[currentValue, targetValue, alpha] call BIS_fnc_lerpVector

Parameters:

Returns: Array - interpolated vector

Examples

Example 1

[[1592.74,6558.36,0], [2240.43,7459.69,0], 0.3] call BIS_fnc_lerpVector; // returns [1787.05,6828.76,0]

See also

BIS_fnc_clerp · BIS_fnc_slerp · BIS_fnc_lerp · BIS_fnc_inverseLerp