BIS fnc rotateVector3D: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \|(\[\[[a-zA-Z]+\]\].+) * \|x1=" to " |r1= $1 |x1=") |
Lou Montana (talk | contribs) m (Text replacement - "<code> +" to "<code>") |
||
Line 20: | Line 20: | ||
|r1= [[Array]] - rotated vector in format [[Vector3D]] | |r1= [[Array]] - rotated vector in format [[Vector3D]] | ||
|x1= <code> [<nowiki/>[[vectorDir]] [[player]], 90, 2] [[call]] [[BIS_fnc_rotateVector3D]];</code> | |x1= <code>[<nowiki/>[[vectorDir]] [[player]], 90, 2] [[call]] [[BIS_fnc_rotateVector3D]];</code> | ||
|seealso= [[BIS_fnc_transformVectorDirAndUp]], [[BIS_fnc_rotateVector2D]] | |seealso= [[BIS_fnc_transformVectorDirAndUp]], [[BIS_fnc_rotateVector2D]] |
Revision as of 22:47, 10 June 2021
Description
- Description:
- Description needed
- Execution:
- call
- Groups:
- Vectors
Syntax
- Syntax:
- Syntax needed
- 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