Пример #1
0
 public void Update(Mesh mesh)
 {
     Wing.UpdateSections();
     Fuselage.UpdateSections();
     HorizontalStabilizer.UpdateSections();
     VerticalStabilizer.UpdateSections();
     UnderCarriage.UpdateSections();
 }
Пример #2
0
        public Aircraft()
        {
            Fuselage             = new Fuselage();
            HorizontalStabilizer = new HorizontalStabilizer();
            Wing = new Wing();
            VerticalStabilizer = new VerticalStabilizer();
            UnderCarriage      = new UnderCarriage();

            SeatsAcross = 10;
        }
Пример #3
0
        public void Generate(Mesh mesh)
        {
            Update(mesh);

            Wing.Generate(mesh, new Vector2(0.15f, 0));
            Wing.Engines.ForEach(x => x.Generate(mesh, new Vector2(0.25f, 0)));
            Wing.Flaps.Generate(mesh, new Vector2(0.35f, 0));
            Fuselage.Generate(mesh, Vector2.zero);
            HorizontalStabilizer.Generate(mesh, new Vector2(0.45f, 0));
            VerticalStabilizer.Generate(mesh, new Vector2(0.55f, 0));
            UnderCarriage.Generate(mesh, new Vector2(0.65f, 0));
        }