Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Rotation {
- private static Thread thread;
- public static float rotation;
- public static void startThread() {
- rotation = 0.0f;
- while(true) {
- try {
- thread.sleep(50);
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- rotation+= 0.1;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement