Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!

Vector

From Quake Wiki

Revision as of 19:28, 7 May 2008 by ShoTro (talk | contribs) (New page: === Vector type === A vector, made of 3 float coordinates. Used to represent positions or directions in 3D space. Valid syntax: '0 0 0' or '20.5 -10 0.00001' Note the simple quotes ar...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Vector type[edit]

A vector, made of 3 float coordinates. Used to represent positions or directions in 3D space.

 Valid syntax: '0 0 0' or '20.5 -10 0.00001'

Note the simple quotes around the vector. Do not use double quotes, they are reserved for strings.

If you declare a vector foobar, then you can access it's x, y and z fields with: foobar_x, foobar_y,foobar_z.