{"name":"BIS_fnc_rotateVector3D","operator":null,"title":"BIS fnc rotateVector3D","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_rotateVector3D","revid":338142,"updated":"2023-02-23T23:47:39Z","groups":["Vectors"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Rotates the vector around the given axis by the given angle","syntaxes":[{"syntax":"[vector, angle, axis] call BIS_fnc_rotateVector3D","since":null,"effect":null,"exec":null,"params":[{"name":"vector","type":"Array in format Vector3D","optional":false,"default":null,"description":null,"types":["Array","Vector3D"],"since":null,"text":"vector: Array in format Vector3D"},{"name":"angle","type":"Number","optional":false,"default":null,"description":"given angle (taken in the opposite direction to the one defined by the [right hand rule](https://en.wikipedia.org/wiki/Right-hand_rule))","types":["Number"],"since":null,"text":"angle: Number - given angle (taken in the opposite direction to the one defined by the [right hand rule](https://en.wikipedia.org/wiki/Right-hand_rule))"},{"name":"axis","type":"Number","optional":false,"default":null,"description":"rotation axis:\n- 0 - **X** axis\n- 1 - **Y** axis\n- 2 - **Z** axis","types":["Number"],"since":null,"text":"axis: Number - rotation axis:\n- 0 - **X** axis\n- 1 - **Y** axis\n- 2 - **Z** axis"}],"returns":{"type":"Array","types":["Array"],"description":"rotated vector in format Vector3D","text":"Array - rotated vector in format Vector3D"}}],"examples":[{"text":"```sqf\n[vectorDir player, 90, 2] call BIS_fnc_rotateVector3D;\n```","code":["[vectorDir player, 90, 2] call BIS_fnc_rotateVector3D;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_transformVectorDirAndUp","BIS_fnc_rotateVector2D"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Vectors","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}