Vector3D: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - ";[ ]+ " to "; ") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 12: | Line 12: | ||
The return array can be processed-converted into degrees as follows: | The return array can be processed-converted into degrees as follows: | ||
<sqf> | |||
_vdir = player weaponDirection (primaryWeapon player); | |||
_adir= _vdir # 0 atan2 _vdir # 1; | |||
</sqf> | |||
[[Category: Arrays]] | [[Category: Arrays]] |
Revision as of 16:38, 22 July 2022
Format:
[x, y, z]
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: