BIS_fnc_clerp

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 3 version1.78
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.78

Description

Description:
/*
	Author:
	Nelson Duarte

	Description:
	CLerp - Circular Lerp - is like lerp but handles the wraparound from 0 to 360
	This is useful when interpolating eulerAngles and the object crosses the 0/360 boundary
	The standard Lerp function causes the object to rotate in the wrong direction, clerp fixes that

	Parameters:
	_this: ARRAY
		0: Float - The current value
		1: Float - The target value
		2: Float - The alpha

	Returns:
	Float
*/
(Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki)

Syntax

Syntax:
[] call BIS_fnc_clerp
Parameters:
parameter: Datatype - (Optional, default defValue) description
Return Value:
Datatype - description

Examples

Example 1:
Example needed

Additional Information

Execution:
call
Multiplayer:
-
See also:
See also needed

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To