
PicoRover to the Moon win32 sources released on google code.
public class MissionSimulation
extends Simulation
{
Earth earth;
Moon moon;
Spacecraft sc;
ThreeBody b3;
MissionSimulation(File dat){
super(dat);
}
public void init(){
this.earth = new Earth();
this.moon = new Moon();
this.sc = new Spacecraft();
this.b3 = new ThreeBody(earth,moon,sc);
this.b3.setTime(this.getSimulationTime());
this.sc.setVector(this.getSimulationScStateVector());
}
public void step(long time, long dt){
this.b3.updateTime(dt);
}
public void display(GL gl){
this.pov(gl);
if (this.earth.inPov(this))
this.earth.display(gl);
if (this.moon.inPov(this))
this.moon.display(g);
if (this.sc.inPov(this))
this.sc.display(g);
}
}