Vector3D: Difference between revisions
Category: Arrays
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
| Line 1: | Line 1: | ||
{{Hatnote|See also [[Vector2D]].}} | |||
'''Format:''' | '''Format:''' | ||
[x, y, z] | [x, y, z] where x, y and z are [[Number]]s | ||
| Line 13: | Line 14: | ||
The return array can be processed-converted into degrees as follows: | The return array can be processed-converted into degrees as follows: | ||
<sqf> | <sqf> | ||
_vDir = player weaponDirection | _vDir = player weaponDirection primaryWeapon player; | ||
_aDir = _vDir # 0 atan2 _vDir # 1; | _aDir = _vDir # 0 atan2 _vDir # 1; | ||
</sqf> | </sqf> | ||
Latest revision as of 15:47, 6 January 2026
ⓘ See also Vector2D.
Format:
[x, y, z] where x, y and z are Numbers
Description:
Represents a 3-dimensional vector in space.
A normalised vector means that each value is within range -1..+1.
The return array can be processed-converted into degrees as follows: