BIS fnc rotateVector3D: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Function|= Comments " to "{{Function|Comments= ")
mNo edit summary
Line 5: Line 5:
|1.00|Game version=
|1.00|Game version=


<!---|arg= local |Multiplayer Arguments=--->
|gr1= Vectors |GROUP1=
 
<!---|eff= local |Multiplayer Effects=--->


| Rotates the vector around the given axis by the given angle |Description=
| Rotates the vector around the given axis by the given angle |Description=
Line 27: Line 25:
}}
}}


[[Category:Function Group: Vectors|{{uc:rotateVector3D}}]]
[[Category:Functions|{{uc:rotateVector3D}}]]
[[Category:Functions|{{uc:rotateVector3D}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:rotateVector3D}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:rotateVector3D}}]]

Revision as of 00:02, 6 October 2020

Hover & click on the images for description

Description

Description:
Rotates the vector around the given axis by the given angle
Execution:
call
Groups:
Vectors

Syntax

Syntax:
[vector, angle, axis] call BIS_fnc_rotateVector3D
Parameters:
[vector, angle, axis]: Array
vector: Array - given vector in format Vector3D
angle: 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
Return Value:
Array - rotated vector in format Vector3D

Examples

Example 1:
[vectorDir player, 90, 2] call BIS_fnc_rotateVector3D;

Additional Information

See also:
BIS_fnc_transformVectorDirAndUpBIS_fnc_rotateVector2D

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