moonSphere.generateAndUseDisplayLists();
moonSphere.unregisterAllInputProcessors();
//Rotate the moon around the earth
new Animation("moon animation", new MultiPurposeInterpolator(0,360, 12000, 0, 1, -1) , moonSphere).addAnimationListener(new IAnimationListener(){
public void processAnimationEvent(AnimationEvent ae) {
moonSphere.rotateZ(earth.getCenterPointLocal(), ae.getCurrentStepDelta(), TransformSpace.RELATIVE_TO_PARENT);
}}).start();
//Rotate the moon around ints own center
new Animation("moon animation around own axis", new MultiPurposeInterpolator(0,360, 9000, 0, 1, -1) , moonSphere).addAnimationListener(new IAnimationListener(){
public void processAnimationEvent(AnimationEvent ae) {
moonSphere.rotateZ(moonSphere.getCenterPointLocal(), -3*ae.getCurrentStepDelta(), TransformSpace.LOCAL);