public FHS1B5(string craftDirectory, DVector2 position, DVector2 velocity, double propellantMass = 425000) : base(craftDirectory, position, velocity, 5, propellantMass, "Falcon/Heavy/S1.png") { StageOffset = new DVector2(0, 25.5); Engines = new IEngine[9]; for (int i = 0; i < 9; i++) { double engineOffsetX = (i - 4.0) / 4.0; var offset = new DVector2(engineOffsetX * Width * 0.3, Height * 0.45); Engines[i] = new Merlin1DB5(i, this, offset); } }
public F9S1B5(string craftDirectory, DVector2 position, DVector2 velocity, double propellantMass = 420000) : base(craftDirectory, position, velocity, 5, propellantMass, "Falcon/9/S1B5.png") { StageOffset = new DVector2(0, 25.5); Engines = new IEngine[9]; for (int i = 0; i < 9; i++) { double theta = (Math.PI * i) / 9.0; double engineOffsetX = Math.Cos(theta); var offset = new DVector2(engineOffsetX * Width * 0.3, Height * 0.48); Engines[i] = new Merlin1DB5(i, this, offset); } }
public FHBoosterB5(string craftDirectory, int id, DVector2 position, DVector2 velocity, double propellantMass = 425000) : base(craftDirectory, position, velocity, 5, propellantMass, "Falcon/Heavy/booster" + id + ".png", -18.35) { Id = id; StageOffset = Id == 1 ? new DVector2(-4, 0.8) : new DVector2(4, 0.8); Engines = new IEngine[9]; for (int i = 0; i < 9; i++) { double engineOffsetX = (i - 4.0) / 4.0; var offset = new DVector2(engineOffsetX * Width * 0.3, Height * 0.45); Engines[i] = new Merlin1DB5(i, this, offset); } }