Package com.flansmod.common.vector

Examples of com.flansmod.common.vector.Vector3f


   
    ammoModel[1] = new ModelRendererTurbo(this, 12, 9, textureX, textureY);
    ammoModel[1].addShapeBox(3.5F, -3F, -0.5F, 1, 3, 1, 0F, /* 0 */ -2.5F, -1F, 0F, /* 1 */ 2F, -1.5F, 0F, /* 2 */ 2F, -1.5F, 0F, /* 3 */ -2.5F, -1F, 0F, /* 4 */ -1F, 0F, 0F, /* 5 */ 0.8F, 0.2F, 0F, /* 6 */ 0.8F, 0.2F, 0F, /* 7 */ -1F, 0F, 0F);

    //Stock
    stockAttachPoint = new Vector3f(-1F / 16F, 3.5F / 16F, 0F);
   
    defaultStockModel = new ModelRendererTurbo[2];
   
    defaultStockModel[0] = new ModelRendererTurbo(this, 16, 6, textureX, textureY);
    defaultStockModel[0].addBox(-7F, 3F, -0.5F, 6, 1, 1);
   
    defaultStockModel[1] = new ModelRendererTurbo(this, 16, 8, textureX, textureY);
    defaultStockModel[1].addBox(-8F, 1F, -0.5F, 1, 3, 1);


    //Barrel
    barrelAttachPoint = new Vector3f(12F / 16F, 3.5F / 16F, 0F);
   
    //Scope
    scopeAttachPoint = new Vector3f(2F / 16F, 5F / 16F, 0F);
   
    gunSlideDistance = 0.25F;
    animationType = EnumAnimationType.PISTOL_CLIP;
  }
View Full Code Here


        heliMainRotorModels[0][6].addBox(0F, -70F, -3F, 160, 2, 6, 0F); // Mrotor6
        heliMainRotorModels[0][6].rotateAngleY = -2.51327412F;
       
           
        //The helicopter rotor origins for rendering. Better than the old propeller rotation point code
        heliMainRotorOrigins = new Vector3f[] { new Vector3f(0F, 48F / 16F, 0F) };
       
       
        //Tail helicopter rotors
        heliTailRotorModels = new ModelRendererTurbo[1][3];
        heliTailRotorModels[0][0] = new ModelRendererTurbo(this,  200900, textureX, textureY); // Trotor1
        heliTailRotorModels[0][1] = new ModelRendererTurbo(this,  200920, textureX, textureY); // Trotor2
        heliTailRotorModels[0][2] = new ModelRendererTurbo(this,  200920, textureX, textureY); // Trotor3
       
        heliTailRotorModels[0][0].addBox(222F, -80F, -6F, 4, 4, 6, 0F); // Trotor1
       
        heliTailRotorModels[0][1].addBox(221F, -108F, -4F, 4, 30, 2, 0F); // Trotor2
       
        heliTailRotorModels[0][2].addBox(221F, -78F, -4F, 4, 30, 2, 0F); // Trotor4

        //The helicopter rotor origins for rendering. Better than the old propeller rotation point code
        heliTailRotorOrigins = new Vector3f[] { new Vector3f(224F / 16F, 78F / 16F, -8F / 16F) };
       
        heliRotorSpeeds = new float[] { 1F };
       
       
View Full Code Here

   
    gunModel[5] = new ModelRendererTurbo(this, 0, 9, textureX, textureY);
    gunModel[5].addBox(6F, 3.5F, -0.5F, 12, 1, 1);
   
    //Scope
    scopeAttachPoint = new Vector3f(3.5F / 16F, 5F / 16F, 0F);

    //Stock
    defaultStockModel = new ModelRendererTurbo[3];
   
    defaultStockModel[0] = new ModelRendererTurbo(this, 20, 3, textureX, textureY);
    defaultStockModel[0].addBox(-8F, 1F, -1F, 3, 4, 2);
   
    defaultStockModel[1] = new ModelRendererTurbo(this, 0, 11, textureX, textureY);
    defaultStockModel[1].addBox(-5F, 2F, -1F, 3, 3, 2);
   
    defaultStockModel[2] = new ModelRendererTurbo(this, 10, 11, textureX, textureY);
    defaultStockModel[2].addBox(-2F, 3F, -1F, 3, 2, 2);
   
    stockAttachPoint = new Vector3f(1F / 16F, 4F / 16F, 0F);
   
    //Barrel   
    barrelAttachPoint = new Vector3f(18F / 16F, 4F / 16F, 0F);
   
    //Grip
    gripAttachPoint = new Vector3f(10F / 16F, 3F / 16F, 0F);
   
    //Ammo
    ammoModel = new ModelRendererTurbo[2];
   
    ammoModel[0] = new ModelRendererTurbo(this, 20, 11, textureX, textureY);
View Full Code Here

    gunModel[3].addBox(-0.5F, -11F, -0.5F, 1, 8, 1);
   
    for(int i = 0; i < 4; i++)
      gunModel[i].setRotationPoint(0F, 8F, 0F);
   
    thirdPersonOffset = new Vector3f(0F, -2F / 16F, 0F);
  }
View Full Code Here

    gunModel[7].addBox(0F, -0.6666667F, 0F, 3, 1, 1, 0F); // slideblock4
    gunModel[7].setRotationPoint(5.1F, 5.1F, -0.5F)
   
    //Scope
    scopeAttachPoint = new Vector3f(2F / 16F, 3.333F / 16F, 0F);

    //defaultStock
    defaultStockModel = new ModelRendererTurbo[4];
    defaultStockModel[0] = new ModelRendererTurbo(this,  2011, textureX, textureY); // defaultstock1
    defaultStockModel[1] = new ModelRendererTurbo(this,  2411, textureX, textureY); // defaultstock2
    defaultStockModel[2] = new ModelRendererTurbo(this,  05, textureX, textureY); // defaultstock3
    defaultStockModel[3] = new ModelRendererTurbo(this,  207, textureX, textureY); // defaultstock4

    defaultStockModel[0].addBox(0F, 0F, 0F, 1, 2, 1, 0F); // defaultstock1
    defaultStockModel[0].setRotationPoint(2F, 3.3F, -0.8F);

    defaultStockModel[1].addBox(0F, 0F, 0F, 1, 2, 1, 0F); // defaultstock2
    defaultStockModel[1].setRotationPoint(2F, 3.3F, -0.2F);

    defaultStockModel[2].addBox(0F, 0F, 0F, 2, 1, 1, 0F); // defaultstock3
    defaultStockModel[2].setRotationPoint(1F, 4.4F, -0.5F);

    defaultStockModel[3].addBox(0F, 0F, 0F, 1, 3, 1, 0F); // defaultstock4
    defaultStockModel[3].setRotationPoint(0F, 2.4F, -0.5F)
   
    stockAttachPoint = new Vector3f(1F / 16F, 4F / 16F, 0F);
   
    //Barrel   
    barrelAttachPoint = new Vector3f(18F / 16F, 4F / 16F, 0F);
   
    //Grip
    gripAttachPoint = new Vector3f(8F / 16F, 0.5F / 16F, 0F);
   
    defaultGripModel = new ModelRendererTurbo[4];
   
    defaultGripModel[0] = new ModelRendererTurbo(this,  020, textureX, textureY); // Foregrip1
    defaultGripModel[1] = new ModelRendererTurbo(this,  024, textureX, textureY); // Foregrip2
View Full Code Here

    gunModel[1].addBox(0F, -0.5F, -0.5F, 4, 1, 1);
   
    for(int i = 0; i < 2; i++)
      gunModel[i].setRotationPoint(0F, 12F, 0F);
   
    thirdPersonOffset = new Vector3f(4F / 16F, -12F / 16F, 0F);
  }
View Full Code Here

    gunModel[1].addBox(-4F, -2F, 12F, 8, 4, 4);
   
    for(int i = 0; i < 2; i++)
      gunModel[i].setRotationPoint(4F, 0F, 0F);
   
    thirdPersonOffset = new Vector3f(-2F / 16F, 0F, 0F);
  }
View Full Code Here

   
    pumpModel[0] = new ModelRendererTurbo(this, 8, 7, textureX, textureY);
    pumpModel[0].addBox(10F, 2.8F, -1F, 4, 1, 2);
   
    //Scope
    scopeAttachPoint = new Vector3f(3F / 16F, 5F / 16F, 0F);

    //Stock
    defaultStockModel = new ModelRendererTurbo[3];
   
    defaultStockModel[0] = new ModelRendererTurbo(this, 8, 10, textureX, textureY);
    defaultStockModel[0].addBox(-8F, 0F, -1F, 3, 3, 2);
   
    defaultStockModel[1] = new ModelRendererTurbo(this, 0, 12, textureX, textureY);
    defaultStockModel[1].addBox(-5F, 1F, -1F, 2, 2, 2);
   
    defaultStockModel[2] = new ModelRendererTurbo(this, 18, 12, textureX, textureY);
    defaultStockModel[2].addBox(-3F, 2F, -1F, 2, 2, 2);
   
    stockAttachPoint = new Vector3f(1F / 16F, 4F / 16F, 0F);
   
    //Barrel   
    barrelAttachPoint = new Vector3f(18F / 16F, 4F / 16F, 0F);
   
    //Grip
    gripAttachPoint = new Vector3f(12F / 16F, 3F / 16F, 0F);
   
    //Ammo
    ammoModel = new ModelRendererTurbo[1];
   
    ammoModel[0] = new ModelRendererTurbo(this, 22, 0, textureX, textureY);
View Full Code Here

   
    minigunBarrelModel[11] = new ModelRendererTurbo(this, 48, 37, textureX, textureY);
    minigunBarrelModel[11].addShapeBox(36F, -3F, -3F, 2, 3, 6, 0F, /* 0 */ 0F, -0.5F, -1.5F, /* 1 */ 0F, -0.5F, -1.5F, /* 2 */ 0F, -0.5F, -1.5F, /* 3 */ 0F, -0.5F, -1.5F, /* 4 */ 0F, 0F, 0F, /* 5 */ 0F, 0F, 0F, /* 6 */ 0F, 0F, 0F, /* 7 */ 0F, 0F, 0F);
    minigunBarrelModel[11].setRotationPoint(0F, -1F, 0F);
   
    minigunBarrelOrigin = new Vector3f(8F / 16F, -1F / 16F, 0F);
   
    animationType = EnumAnimationType.SIDE_CLIP;
   
    thirdPersonOffset = new Vector3f(0F, -0.15F, 0F);
  }
View Full Code Here

   
    gunModel[5] = new ModelRendererTurbo(this, 0, 9, textureX, textureY);
    gunModel[5].addBox(6F, 3.5F, -0.5F, 10, 1, 1);
   
    //Scope
    scopeAttachPoint = new Vector3f(3.5F / 16F, 5F / 16F, 0F);
   
    //Stock
    defaultStockModel = new ModelRendererTurbo[3];
   
    defaultStockModel[0] = new ModelRendererTurbo(this, 20, 3, textureX, textureY);
    defaultStockModel[0].addBox(-8F, 1F, -1F, 2, 4, 2);
   
    defaultStockModel[1] = new ModelRendererTurbo(this, 0, 11, textureX, textureY);
    defaultStockModel[1].addBox(-6F, 2F, -1F, 2, 3, 2);
   
    defaultStockModel[2] = new ModelRendererTurbo(this, 10, 11, textureX, textureY);
    defaultStockModel[2].addBox(-4F, 3.5F, -0.5F, 3, 1, 1);
   
    stockAttachPoint = new Vector3f(1F / 16F, 4F / 16F, 0F);
   
    //Barrel   
    barrelAttachPoint = new Vector3f(16F / 16F, 4F / 16F, 0F);
   
    //Grip
    gripAttachPoint = new Vector3f(10F / 16F, 3F / 16F, 0F);
   
    defaultGripModel = new ModelRendererTurbo[2];
   
    defaultGripModel[0] = new ModelRendererTurbo(this, 30, 0, textureX, textureY);
    defaultGripModel[0].addBox(7.5F, 2F, -1F, 2, 1, 2);
View Full Code Here

TOP

Related Classes of com.flansmod.common.vector.Vector3f

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.