BIS fnc lerpVector: Difference between revisions
Jump to navigation
Jump to search
m (page filled) |
m (Text replacement - "\[\[Category\:Function Group\: Interp(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "") |
||
Line 33: | Line 33: | ||
}} | }} | ||
[[Category:Functions|{{uc:lerpVector}}]] | [[Category:Functions|{{uc:lerpVector}}]] | ||
[[Category:{{Name|arma3}}: Functions|{{uc:lerpVector}}]] | [[Category:{{Name|arma3}}: Functions|{{uc:lerpVector}}]] |
Revision as of 15:44, 10 October 2020
Description
- Description:
- Given two different vectors A and B, think of a straight line drawn between them With _alpha saying how far along that line you are
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [currentValue, targetValue, alpha] call BIS_fnc_lerpVector
- Parameters:
- currentValue: Array - Vector Start
- targetValue: Array - Vector End
- alpha: Number - Alpha
- Return Value:
- 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]
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note