daily pastebin goal
35%
SHARE
TWEET

Untitled

Faguss Oct 18th, 2016 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Rotation around the bank
  2.     _Z  = cos(_bank)*_up - sin(_bank)*_side;
  3.         _X = sin(_bank)*_up + cos(_bank)*_side;
  4.  
  5.     // Rotation around the pitch
  6.     _xy = cos(_pitch)*_forward - sin(_pitch)*_Z;
  7.     _Z  = sin(_pitch)*_forward + cos(_pitch)*_Z;
  8.      
  9.     // Rotation around the yaw 
  10.     _Y  = sin(_yaw)*_X + cos(_yaw)*_xy;
  11.     _X  = cos(_yaw)*_X - sin(_yaw)*_xy;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top