Пример #1
0
        public Ship(int id)
        {
            shipModel = new AssimpSceneOld(Path.Combine(Path.GetDirectoryName(
                                                            Assembly.GetExecutingAssembly().Location), "Resources\\Hamina"), "T-90.obj");

            // shipModel = new AssimpScene(Path.Combine(Path.GetDirectoryName
            //       (Assembly.GetExecutingAssembly().Location), "Resources\\T-90"), "T-90.3DS");

            projectil       = new Projectil(id);
            projectil.Alive = true;

            translateX = 6.0f;
            translateY = 0.0f;
            translateZ = -1.2f;

            rotateDegree = -100;

            rotateX = 0.0f;
            rotateY = 1.0f;
            rotateZ = 0.0f;
        }
Пример #2
0
        public Ship(int id)
        {
            shipModel = new AssimpSceneOld(Path.Combine(Path.GetDirectoryName(
                        Assembly.GetExecutingAssembly().Location), "Resources\\Hamina"), "T-90.obj");

           // shipModel = new AssimpScene(Path.Combine(Path.GetDirectoryName
           //       (Assembly.GetExecutingAssembly().Location), "Resources\\T-90"), "T-90.3DS");

            projectil = new Projectil(id);
            projectil.Alive = true;

            translateX = 6.0f;
            translateY = 0.0f;
            translateZ = -1.2f;

            rotateDegree = -100;

            rotateX = 0.0f;
            rotateY = 1.0f;
            rotateZ = 0.0f;

        }