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

Difference between revisions of "DP QC VECTOANGLES WITH ROLL"

From Quake Wiki

(New page: Builtin definitions: <pre> vector(vector forward, vector up) vectoangles2 = #51; // same number as vectoangles </pre> Variant of vectoangles that takes an up vector to calculate roll angl...)
 
 
Line 7: Line 7:
  
 
Note: Just like normal vectoangles you need to negate the pitch of the returned angles if you want to feed them to makevectors or assign to self.v_angle
 
Note: Just like normal vectoangles you need to negate the pitch of the returned angles if you want to feed them to makevectors or assign to self.v_angle
 +
[[Category:DarkPlaces]]

Latest revision as of 02:18, 25 March 2013

Builtin definitions:

vector(vector forward, vector up) vectoangles2 = #51; // same number as vectoangles

Variant of vectoangles that takes an up vector to calculate roll angle (also uses this to calculate yaw correctly if the forward is straight up or straight down)

Note: Just like normal vectoangles you need to negate the pitch of the returned angles if you want to feed them to makevectors or assign to self.v_angle