Package com.flansmod.common.vector

Examples of com.flansmod.common.vector.Vector3f


   
    gunModel[7] = new ModelRendererTurbo(this, 10, 8, textureX, textureY);
    gunModel[7].addBox(0.5F, 4.5F, -0.5F, 1, 1, 1);
   
    //Scope
    scopeAttachPoint = new Vector3f(3.5F / 16F, 5F / 16F, 0F);

    //Stock
    defaultStockModel = new ModelRendererTurbo[2];
   
    defaultStockModel[0] = new ModelRendererTurbo(this, 16, 5, textureX, textureY);
    defaultStockModel[0].addShapeBox(-6F, 0F, -1F, 2, 4, 2, 0F, /* 0 */ 0F, 0F, 0F, /* 1 */ 0F, -2F, 0F, /* 2 */ 0F, -2F, 0F, /* 3 */ 0F, 0F, 0F, /* 4 */ 0F, 0F, 0F, /* 5 */ 0F, 0F, 0F, /* 6 */ 0F, 0F, 0F, /* 7 */ 0F, 0F, 0F)
   
    defaultStockModel[1] = new ModelRendererTurbo(this, 24, 5, textureX, textureY);
    defaultStockModel[1].addShapeBox(-4F, 2F, -1F, 4, 3, 2, 0F, /* 0 */ 0F, 0F, 0F, /* 1 */ 0F, 0F, 0F, /* 2 */ 0F, 0F, 0F, /* 3 */ 0F, 0F, 0F, /* 4 */ 0F, -1F, 0F, /* 5 */ 0F, 0F, 0F, /* 6 */ 0F, 0F, 0F, /* 7 */ 0F, -1F, 0F)
   
    stockAttachPoint = new Vector3f(1F / 16F, 4F / 16F, 0F);
   
    //Barrel   
    barrelAttachPoint = new Vector3f(17F / 16F, 3.75F / 16F, 0F);
   
    //Grip
    gripAttachPoint = new Vector3f(10F / 16F, 3F / 16F, 0F);
   
    //Ammo
    ammoModel = new ModelRendererTurbo[1];
   
    ammoModel[0] = new ModelRendererTurbo(this, 12, 11, textureX, textureY);
View Full Code Here


    defaultScopeModel[3].addBox(1F, 2.5F, -0.5F, 1, 2, 1);
   
    defaultScopeModel[4] = new ModelRendererTurbo(this, 12, 13, textureX, textureY);
    defaultScopeModel[4].addBox(3F, 2.5F, -0.5F, 1, 2, 1);
   
    scopeAttachPoint = new Vector3f(3F / 16F, 5F / 16F, 0F);
   
    //Barrel   
    barrelAttachPoint = new Vector3f(17F / 16F, 4.5F / 16F, 0F);
   
    //Stock
    defaultStockModel = new ModelRendererTurbo[2];
       
    defaultStockModel[0] = new ModelRendererTurbo(this, 16, 6, textureX, textureY);
    defaultStockModel[0].addBox(-2F, -0.5F, -1F, 1, 2, 2);
   
    defaultStockModel[1] = new ModelRendererTurbo(this, 18, 10, textureX, textureY);
    defaultStockModel[1].addBox(-8F, -1F, -1F, 6, 3, 2);
   
    stockAttachPoint = new Vector3f(-1F / 16F, 1F / 16F, 0F);
   
    //Ammo
    ammoModel = new ModelRendererTurbo[1];
   
    ammoModel[0] = new ModelRendererTurbo(this, 26, 6, textureX, textureY);
View Full Code Here

    gunSlideDistance = 0F;
    animationType = EnumAnimationType.NONE;

    flipAll();
    translateAll(0F, 0F, 3F);
    thirdPersonOffset = new Vector3f(0F, -0.05F, -0.2F);
  }
View Full Code Here

    defaultScopeModel[2].addBox(1F, 2.5F, -0.5F, 1, 2, 1);
   
    defaultScopeModel[3] = new ModelRendererTurbo(this, 12, 13, textureX, textureY);
    defaultScopeModel[3].addBox(3F, 2.5F, -0.5F, 1, 2, 1);
   
    scopeAttachPoint = new Vector3f(3F / 16F, 5F / 16F, 0F);
   
    //Barrel   
    barrelAttachPoint = new Vector3f(17F / 16F, 4.5F / 16F, 0F);
   
    //Stock
    defaultStockModel = new ModelRendererTurbo[5];
   
    defaultStockModel[0] = new ModelRendererTurbo(this, 27, 10, textureX, textureY);
    defaultStockModel[0].addBox(-2F, -2F, -1F, 1, 4, 2);
   
    defaultStockModel[1] = new ModelRendererTurbo(this, 34, 13, textureX, textureY);
    defaultStockModel[1].addBox(-5F, -2F, -1F, 3, 1, 2);
   
    defaultStockModel[2] = new ModelRendererTurbo(this, 34, 10, textureX, textureY);
    defaultStockModel[2].addBox(-4F, 1F, -1F, 2, 1, 2);
   
    defaultStockModel[3] = new ModelRendererTurbo(this, 30, 5, textureX, textureY);
    defaultStockModel[3].addBox(-7F, -1F, -1F, 3, 3, 2);
   
    defaultStockModel[4] = new ModelRendererTurbo(this, 18, 10, textureX, textureY);
    defaultStockModel[4].addBox(-9F, -2F, -1F, 2, 4, 2);
   
    stockAttachPoint = new Vector3f(-1F / 16F, 1F / 16F, 0F);
   
    //Ammo
    ammoModel = new ModelRendererTurbo[1];
   
    ammoModel[0] = new ModelRendererTurbo(this, 41, 7, textureX, textureY);
View Full Code Here

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

    slideModel[1].addShapeBox(3F, -4.1F, -1.4F, 1, 1, 1, 0F,-0.5F, 0F, -0.3F,0F, 0F, -0.3F,0F, 0F, -0.3F,-0.5F, 0F, -0.3F,0F, 0F, -0.3F,0F, 0F, -0.3F,0F, 0F, -0.3F,0F, 0F, -0.3F); // Box 20
    slideModel[1].setRotationPoint(0F, 0F, 0F);



    barrelAttachPoint = new Vector3f(9F / 16F, 2.75F / 16F, 0F);
    stockAttachPoint = new Vector3f(0F, 0F, 0F);
    scopeAttachPoint = new Vector3f(4F / 16F, 5F / 16F, 0F);
    gripAttachPoint = new Vector3f(0F, 0F, 0F);

    gunSlideDistance = 0F;
    animationType = EnumAnimationType.PISTOL_CLIP;

View Full Code Here

   
    //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);
   
    defaultGripModel = new ModelRendererTurbo[1];
   
    defaultGripModel[0] = new ModelRendererTurbo(this, 21, 9, textureX, textureY);
    defaultGripModel[0].addBox(7F, 1F, -0.5F, 1, 2, 1);
   
    //Barrel
    barrelAttachPoint = new Vector3f(9F / 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

   
    gunModel[7] = new ModelRendererTurbo(this, 25, 1, textureX, textureY);
    gunModel[7].addBox(4.9F, 2F, -1.5F, 5, 3, 3);
       
    //Scope
    scopeAttachPoint = new Vector3f(7.5F / 16F, 5F / 16F, 0F);
   
    //Barrel
    defaultBarrelModel = new ModelRendererTurbo[1];
       
    defaultBarrelModel[0] = new ModelRendererTurbo(this, 21, 11, textureX, textureY);
    defaultBarrelModel[0].addBox(10F, 1.5F, -0.5F, 1, 1, 1);
   
    barrelAttachPoint = new Vector3f(10F / 16F, 2F / 16F, 0F);
   
    //Ammo
    ammoModel = new ModelRendererTurbo[1];
   
    ammoModel[0] = new ModelRendererTurbo(this, 28, 13, textureX, textureY);
View Full Code Here

      ammoModel[i].addBox(0F, 0.35F, -0.5F, 2, 0.5F, 0.5F);
      ammoModel[i].setRotationPoint(2.5F, 2.25F, 0F);
      ammoModel[i].rotateAngleX = (float)Math.PI / 3F * i;
    }

    barrelAttachPoint = new Vector3f(11F / 16F, 4.5F / 16F, 0F);
   
    scopeAttachPoint = new Vector3f(4F / 16F, 5F / 16F, 0F);   
   
    translateAll(0F, 1.5F, 0F);
    gunSlideDistance = 0.25F;
    animationType = EnumAnimationType.REVOLVER;
  }
View Full Code Here

    defaultScopeModel[3].addBox(1.5F, 2.5F, -0.5F, 1, 1, 1);
   
    defaultScopeModel[4] = new ModelRendererTurbo(this, 16, 14, textureX, textureY);
    defaultScopeModel[4].addBox(4.5F, 2.5F, -0.5F, 1, 1, 1);
   
    scopeAttachPoint = new Vector3f(3F / 16F, 5F / 16F, 0F);
   
    //Barrel   
    barrelAttachPoint = new Vector3f(17F / 16F, 4.5F / 16F, 0F);
   
    //Stock
    defaultStockModel = new ModelRendererTurbo[2];
   
    defaultStockModel[0] = new ModelRendererTurbo(this, 0, 6, textureX, textureY);
    defaultStockModel[0].addBox(-4F, -0.5F, -1F, 3, 2, 2);
   
    defaultStockModel[1] = new ModelRendererTurbo(this, 16, 6, textureX, textureY);
    defaultStockModel[1].addShapeBox(-9F, -2F, -1F, 5, 4, 2, 0F, /* 0 */ 0F, 0F, 0F, /* 1 */ 0F, -1.5F, 0F, /* 2 */ 0F, -1.5F, 0F, /* 3 */ 0F, 0F, 0F, /* 4 */ 0F, 0F, 0F, /* 5 */ 0F, 0F, 0F, /* 6 */ 0F, 0F, 0F, /* 7 */ 0F, 0F, 0F)
   
    stockAttachPoint = new Vector3f(-1F / 16F, 1F / 16F, 0F);
   
    //Ammo
    ammoModel = new ModelRendererTurbo[1];
   
    ammoModel[0] = new ModelRendererTurbo(this, 34, 0, textureX, textureY);
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.