Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!
Difference between revisions of "makevectors"
From Quake Wiki
Line 1: | Line 1: | ||
− | Syntax: | + | ====Syntax:==== |
<code>void makevectors(vector angles)</code> | <code>void makevectors(vector angles)</code> | ||
Creates relative forward, right and up vectors with length 1 from angles. These 3 directional vectors are stored in the global variables <code>v_forward</code>, <code>v_right</code> and <code>v_up</code> respectively. | Creates relative forward, right and up vectors with length 1 from angles. These 3 directional vectors are stored in the global variables <code>v_forward</code>, <code>v_right</code> and <code>v_up</code> respectively. | ||
Note that because these are global variables, running makevectors on another set of angles will destroy the previously calculated vectors. | Note that because these are global variables, running makevectors on another set of angles will destroy the previously calculated vectors. | ||
− | + | ====Parameters:==== | |
+ | :None | ||
+ | ====Returns:==== | ||
+ | :void | ||
[[Category:QuakeC Function]] | [[Category:QuakeC Function]] |
Revision as of 00:50, 25 March 2013
Syntax:
void 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.
Parameters:
- None
Returns:
- void