Vector3D: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) mNo edit summary |
m (example 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: | ||
_vdir = player weaponDirection (primaryWeapon player); | _vdir = [[player]] [[weaponDirection]] ([[primaryWeapon]] [[player]]); | ||
_adir= | _adir= _vdir [[select|#]] 0 [[atan2]] _vdir [[select|#]] 1; | ||
[[Category: Arrays]] | [[Category: Arrays]] |
Revision as of 11:42, 3 June 2018
Format:
[x, y, z]
Description:
Represents a 3-dimensional vector in space.
Each value can range from -1 to +1.
The return array can be processed-converted into degrees as follows:
_vdir = player weaponDirection (primaryWeapon player); _adir= _vdir # 0 atan2 _vdir # 1;