Vector3D: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(No difference)

Revision as of 22:28, 23 January 2008

Format:

[x, z, y]


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 select 0) atan2 (_vdir select 1);