Advertisement
Guest User

Untitled

a guest
Oct 9th, 2015
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.30 KB | None | 0 0
  1. public class Rotation {
  2.    
  3.     private static Thread thread;
  4.     public static float rotation;
  5.    
  6.     public static void startThread() {
  7.         rotation = 0.0f;
  8.         while(true) {
  9.             try {
  10.                 thread.sleep(50);
  11.             } catch (InterruptedException e) {
  12.                 e.printStackTrace();
  13.             }
  14.             rotation+= 0.1;
  15.         }
  16.     }
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement