BIS fnc rotateVector3D: Difference between revisions
Jump to navigation
Jump to search
m (infobox to template) |
Killzone Kid (talk | contribs) (fill page) |
||
Line 9: | Line 9: | ||
<!---|eff= local |Multiplayer Effects=---> | <!---|eff= local |Multiplayer Effects=---> | ||
| | | Rotates the vector around the given axis by the given angle |Description= | ||
|[] call [[BIS_fnc_rotateVector3D]]|Syntax= | |[vector, angle, axis] call [[BIS_fnc_rotateVector3D]]|Syntax= | ||
|p1= | |p1= [vector, angle, axis]: [[Array]] |Parameter 1= | ||
|p2= vector: [[Array]] - given vector in format [[Vector3D]] |Parameter 2= | |||
|p3= angle: [[Number]] - given angle (taken in the opposite direction to the one defined by the [https://en.wikipedia.org/wiki/Right-hand_rule right hand rule]) |Parameter 3= | |||
|p4= axis: [[Number]] - rotation axis: | |||
* 0 - '''X''' axis | |||
* 1 - '''Y''' axis | |||
* 2 - '''Z''' axis|Parameter 4= | |||
|[[Array]] - rotated vector in format [[Vector3D]]|Return value= | |||
| | |x1= <code> <nowiki>[</nowiki>[[vectorDir]] [[player]], 90, 2] [[call]] [[BIS_fnc_rotateVector3D]];</code>|Example 1= | ||
| | | [[BIS_fnc_transformVectorDirAndUp]], [[BIS_fnc_rotateVector2D]] |See also= | ||
}} | }} | ||
Revision as of 13:23, 17 November 2019
Description
- Description:
- Rotates the vector around the given axis by the given angle
- Execution:
- call
- Groups:
- Uncategorised
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
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