public Orbital(OrbitalConfig config) { Config = config; Name = config.Name; Mass = config.Mass; InitAngle = (config.Angle == OrbitalAngle.Random) ? Random.Range(0f, 259.99f) : (float)config.Angle; OrbitalDistance = config.Distance; Type = config.Type; OffsetAngle = 0; Position = new Vector3(0, 0, 0); Children = new List <Orbital>(); }
public Star(OrbitalConfig config) : base(config) { }