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

makevectors

From Quake Wiki

Revision as of 23:22, 24 March 2013 by Necros (talk | contribs) (Gets relative directional vectors from angles.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Syntax:
makevectors(vector angles)

Creates relative forward, right and up vectors with length 1 from angles. These 3 directional vectors are stored in the global variables v_forward, v_right and v_up respectively. Note that because these are global variables, running makevectors on another set of angles will destroy the previously calculated vectors.