daily pastebin goal
17%
SHARE
TWEET

Untitled

Faguss Oct 18th, 2016 52 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
Pastebin PRO 'MAY MADNESS'!
Get 60% OFF Pastebin PRO accounts!
Top