Description
Rotates the vector around the given axis by the given angle
Syntax
[vector, angle, axis] call BIS_fnc_rotateVector3D
Parameters:
vector: Array in format Vector3Dangle: Number - given angle (taken in the opposite direction to the one defined by the right hand rule)axis: Number - rotation axis:- 0 - X axis
- 1 - Y axis
- 2 - Z axis
Returns: Array - rotated vector in format Vector3D
Examples
Example 1
[vectorDir player, 90, 2] call BIS_fnc_rotateVector3D;