Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. if (camerarot.y + dx >= 360) {
  2. camerarot.y = camerarot.y + dx - 360;
  3. } else if (camerarot.y + dx < 0) {
  4. camerarot.y = 360 - camerarot.y + dx;
  5. } else {
  6. camerarot.y += dx;
  7. }
  8.  
  9. if (camerarot.x - dy >= -90 && camerarot.x - dy <= 90) {
  10. camerarot.x -= dy;
  11. } else if (camerarot.x - dy < -90) {
  12. camerarot.x = -90;
  13. } else if (camerarot.x - dy > 90) {
  14. camerarot.x = 90;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement