Advertisement
Faguss

Untitled

Oct 18th, 2016
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  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;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement