Use an elliptical orbit for the Moon outside a range of 2000 years from present; keeps Moon from crashing into the Earth far in the past or future.
parent
9ddbba65ca
commit
a877267246
|
@ -2319,7 +2319,7 @@ Orbit* GetCustomOrbit(const string& name)
|
|||
if (name == "earth")
|
||||
return new MixedOrbit(new EarthOrbit(), yearToJD(-4000), yearToJD(4000), astro::SolarMass);
|
||||
if (name == "moon")
|
||||
return new LunarOrbit();
|
||||
return new MixedOrbit(new LunarOrbit(), yearToJD(-2000), yearToJD(4000), astro::SolarMass);
|
||||
if (name == "mars")
|
||||
return new MixedOrbit(new MarsOrbit(), yearToJD(-4000), yearToJD(4000), astro::SolarMass);
|
||||
if (name == "jupiter")
|
||||
|
|
Loading…
Reference in New Issue