Vector3D

From Bohemia Interactive Community
Revision as of 18:03, 26 June 2020 by Lou Montana (talk | contribs) (Fix description)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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:

_vdir = player weaponDirection (primaryWeapon player); 
_adir= _vdir # 0 atan2 _vdir # 1;