Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Rotation around the bank
- _Z = cos(_bank)*_up - sin(_bank)*_side;
- _X = sin(_bank)*_up + cos(_bank)*_side;
- // Rotation around the pitch
- _xy = cos(_pitch)*_forward - sin(_pitch)*_Z;
- _Z = sin(_pitch)*_forward + cos(_pitch)*_Z;
- // Rotation around the yaw
- _Y = sin(_yaw)*_X + cos(_yaw)*_xy;
- _X = cos(_yaw)*_X - sin(_yaw)*_xy;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement