Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

2d Square Rotations

Name: Anonymous 2009-07-17 0:13

To do this I know you need to use trig functions, but I cant seem to get it right. Anyone know of some source code that does this properly?

Name: Anonymous 2009-07-18 14:34

Its really retarded, trust me I know.

if(left)
            {
                 try {
                        Thread.sleep(100);
                     }
                    catch (Exception e) {
                       
                     }
               
                    System.out.println("" + dx);
                dx = dx*Math.cos(9) - dy*Math.sin(9);
                dy = dy*Math.cos(9) + dx*Math.sin(9);
            }
            if(right)
            {
                 try {
                        Thread.sleep(100);
                     }
                    catch (Exception e) {
                       
                     }
               
               
                dx = dx*Math.cos(9) + dy*Math.sin(9);
                dy = dy*Math.cos(9) - dx*Math.sin(9);
            }

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List