CBA_fnc_vectRotate3D

Description

Rotates the first vector around the second, clockwise by theta degrees.

Parameters

_vector3D vector that is to be rotated ARRAY
_rotationAxis3D vector that the first argument is rotated around ARRAY
_thetaAngle, in degrees clockwise, about which the first vector is rotated <NUMBER>

Returns

_returnVector3D vector returned after rotation ARRAY

Examples

//Rotate 25 degrees right of player weapon direction;
[weaponDirection player, [0,0,1], 25] call CBA_fnc_vectRotate3D;

//Pitch a projectile's velocity down 10 degrees;
[velocity _projectile, (velocity _projectile) vectorCrossProduct [0,0,1], 10] call CBA_fnc_vectRotate3D;

Author

LorenLuke

Array to read from [Array]
Close