Jedoch kriege ich die Rotation nicht ganz hin.
Hier ist mein Code zum Rotieren:
Code (Text):
a = (float) (a + .00001) ;
planet1.xpos = (float) (Math.cos(a) * planetarray_sundistance[1] + sun.xpos);
planet1.ypos = (float) (Math.sin(a) * planetarray_sundistance[1] + sun.ypos);
planet1.xpos = (float) (Math.cos(a) * planetarray_sundistance[1] + sun.xpos);
planet1.ypos = (float) (Math.sin(a) * planetarray_sundistance[1] + sun.ypos);
Planetare Rotation/Orbit
0 commentaires:
Enregistrer un commentaire