Example #1
0
        public Tank()
        {
            tankModel = new AssimpSceneOld(Path.Combine(Path.GetDirectoryName
                  (Assembly.GetExecutingAssembly().Location), "Resources\\T-90"), "T-90.3DS");

            translateX = 1.5f;
            translateY = -0.2f;
            translateZ = -1.2f;

           // rotateDegree = -100;

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

        }
Example #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;

        }