BIS fnc rotateVector3D: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) m (Text replacement - "\{\{ *Wikipedia *\| *([-a-zA-Z0-9_#':%\/\\]+) *\| *([-a-zA-Z0-9_#':%\/\\ ]+) *\}\}" to "{{Link|https://en.wikipedia.org/wiki/$1|$2}}") |
||
Line 12: | Line 12: | ||
|p1= vector: [[Array]] in format [[Vector3D]] | |p1= vector: [[Array]] in format [[Vector3D]] | ||
|p2= angle: [[Number]] - given angle (taken in the opposite direction to the one defined by the {{ | |p2= angle: [[Number]] - given angle (taken in the opposite direction to the one defined by the {{Link|https://en.wikipedia.org/wiki/Right-hand_rule|right hand rule}}) | ||
|p3= axis: [[Number]] - rotation axis: | |p3= axis: [[Number]] - rotation axis: |
Latest revision as of 00:47, 24 February 2023
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: Array 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:
Additional Information
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