private Moon(Planet planet, string name, double mass, double radius, Vector3 position, Vector3 velocity) : base(name, mass, radius, position, velocity) { planet.AddMoon(this); Body = planet; }
public static Moon Create(string name, Planet planet, double mass, double radius, double distance) { return(new Moon(planet, name, mass, radius, new Vector3(planet.Position.X + distance, 0, 0), new Vector3(0, 0, 0))); }
internal void AddPlanet(Planet planet) { Planets.Add(planet); }