Package com.flansmod.common.vector

Examples of com.flansmod.common.vector.Vector3f


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


   
    gunModel[3] = new ModelRendererTurbo(this, 0, 12, textureX, textureY);
    gunModel[3].addBox(8F, 2.25F, -1F, 6, 2, 2);
   
    //Scope
    scopeAttachPoint = new Vector3f(4F / 16F, 5F / 16F, 0F);

    //Stock
    defaultStockModel = new ModelRendererTurbo[2];
   
    defaultStockModel[0] = new ModelRendererTurbo(this, 8, 7, textureX, textureY);
    defaultStockModel[0].addBox(-7F, 1F, -1F, 3, 3, 2);
   
    defaultStockModel[1] = new ModelRendererTurbo(this, 18, 7, textureX, textureY);
    defaultStockModel[1].addBox(-10F, 0F, -1F, 3, 3, 2);
   
    stockAttachPoint = new Vector3f(-4F / 16F, 3.5F / 16F, 0F);
   
    //Barrel
    defaultBarrelModel = new ModelRendererTurbo[2];
       
    defaultBarrelModel[0] = new ModelRendererTurbo(this, 30, 14, textureX, textureY);
    defaultBarrelModel[0].addBox(14F, 2.5F, -0.5F, 3, 1, 1);
   
    defaultBarrelModel[1] = new ModelRendererTurbo(this, 16, 12, textureX, textureY);
    defaultBarrelModel[1].addBox(17F, 2.5F, -0.5F, 1, 2, 1);
   
    barrelAttachPoint = new Vector3f(14F / 16F, 3.25F / 16F, 0F);
   
    //Ammo
    ammoModel = new ModelRendererTurbo[3];
   
    ammoModel[0] = new ModelRendererTurbo(this, 28, 0, textureX, textureY);
View Full Code Here

   
    gunModel[3] = new ModelRendererTurbo(this, 0, 12, textureX, textureY);
    gunModel[3].addBox(8F, 2.25F, -1F, 6, 2, 2);
   
    //Scope
    scopeAttachPoint = new Vector3f(4F / 16F, 5F / 16F, 0F);

    //Stock
    defaultStockModel = new ModelRendererTurbo[2];
   
    defaultStockModel[0] = new ModelRendererTurbo(this, 8, 7, textureX, textureY);
    defaultStockModel[0].addBox(-7F, 2F, -1F, 3, 2, 2);
   
    defaultStockModel[1] = new ModelRendererTurbo(this, 18, 6, textureX, textureY);
    defaultStockModel[1].addBox(-11F, 0F, -1F, 4, 4, 2);
   
    stockAttachPoint = new Vector3f(-4F / 16F, 3.5F / 16F, 0F);
   
    //Barrel
    defaultBarrelModel = new ModelRendererTurbo[4];
       
    defaultBarrelModel[0] = new ModelRendererTurbo(this, 30, 14, textureX, textureY);
    defaultBarrelModel[0].addBox(14F, 2.5F, -0.5F, 8, 1, 1);
   
    defaultBarrelModel[1] = new ModelRendererTurbo(this, 16, 12, textureX, textureY);
    defaultBarrelModel[1].addBox(22F, 2.5F, -0.5F, 1, 2, 1);
   
    defaultBarrelModel[2] = new ModelRendererTurbo(this, 38, 0, textureX, textureY);
    defaultBarrelModel[2].addShapeBox(20F, -2.5F, -1F, 1, 5, 1, 0F, /* 0 */ 0F, 0F, 3F, /* 1 */ 0F, 0F, 3F, /* 2 */ 0F, 0F, -3F, /* 3 */ 0F, 0F, -3F, /* 4 */ 0F, 0F, 0F, /* 5 */ 0F, 0F, 0F, /* 6 */ 0F, 0F, 0F, /* 7 */ 0F, 0F, 0F)
   
    defaultBarrelModel[3] = new ModelRendererTurbo(this, 38, 0, textureX, textureY);
    defaultBarrelModel[3].addShapeBox(20F, -2.5F, 0F, 1, 5, 1, 0F, /* 0 */ 0F, 0F, -3F, /* 1 */ 0F, 0F, -3F, /* 2 */ 0F, 0F, 3F, /* 3 */ 0F, 0F, 3F, /* 4 */ 0F, 0F, 0F, /* 5 */ 0F, 0F, 0F, /* 6 */ 0F, 0F, 0F, /* 7 */ 0F, 0F, 0F)
   
    barrelAttachPoint = new Vector3f(14F / 16F, 3.25F / 16F, 0F);
   
    //Ammo
    ammoModel = new ModelRendererTurbo[3];
   
    ammoModel[0] = new ModelRendererTurbo(this, 28, 0, textureX, textureY);
View Full Code Here

    defaultScopeModel[4].addBox(3.5F, 5.5F, -0.5F, 1, 1, 1);
   
    defaultScopeModel[5] = new ModelRendererTurbo(this, 14, 11, textureX, textureY);
    defaultScopeModel[5].addBox(0F, 4.5F, -0.5F, 6, 1, 1);
   
    scopeAttachPoint = new Vector3f(3F / 16F, 5F / 16F, 0F);
   
    //Barrel   
    barrelAttachPoint = new Vector3f(18F / 16F, 4F / 16F, 0F);
   
    //Stock
    defaultStockModel = new ModelRendererTurbo[2];
   
    defaultStockModel[0] = new ModelRendererTurbo(this, 20, 2, textureX, textureY);
    defaultStockModel[0].addBox(-2F, 2F, -1F, 1, 2, 2);
   
    defaultStockModel[1] = new ModelRendererTurbo(this, 19, 6, textureX, textureY);
    defaultStockModel[1].addBox(-8F, 1F, -1F, 6, 3, 2);
   
    stockAttachPoint = new Vector3f(-1F / 16F, 3F / 16F, 0F);
   
    //Ammo
    ammoModel = new ModelRendererTurbo[1];
   
    ammoModel[0] = new ModelRendererTurbo(this, 35, 8, textureX, textureY);
View Full Code Here

    heliMainRotorModels[0][3] = new ModelRendererTurbo(this, 0, 223, textureX, textureY); //Blade
    heliMainRotorModels[0][3].addBox(4F, 56F, -2F, 72, 1, 8)
    heliMainRotorModels[0][3].rotateAngleY = (float)Math.PI;
       
    //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][4];
   
    heliTailRotorModels[0][0] = new ModelRendererTurbo(this, 138, 38, textureX, textureY); //Stalk bit
    heliTailRotorModels[0][0].addBox(111.5F, 43.5F, 1F, 1, 1, 4)
   
    heliTailRotorModels[0][1] = new ModelRendererTurbo(this, 150, 38, textureX, textureY); //Bit between the blades
    heliTailRotorModels[0][1].addBox(110F, 43.5F, 5F, 4, 1, 1)
   
    heliTailRotorModels[0][2] = new ModelRendererTurbo(this, 150, 42, textureX, textureY); //Blade
    heliTailRotorModels[0][2].addBox(114F, 43F, 5F, 8, 2, 1)
   
    heliTailRotorModels[0][3] = new ModelRendererTurbo(this, 150, 46, textureX, textureY); //Blade
    heliTailRotorModels[0][3].addBox(102F, 43F, 5F, 8, 2, 1)

    //The helicopter rotor origins for rendering. Better than the old propeller rotation point code
    heliTailRotorOrigins = new Vector3f[] { new Vector3f(112F / 16F, 44F / 16F, 1F / 16F) };
   
    heliRotorSpeeds = new float[] { 1F };

    ModelRendererTurbo[][] noseGun = new ModelRendererTurbo[4][];
    //A swivel chair for the dorsal gunner with some gun supports
View Full Code Here

    slideModel[0].addShapeBox(2.5F, -4F, -1F, 1, 1, 2, 0F,0F, 0F, 0.25F,0F, 0F, 0.25F,0F, 0F, 0.25F,0F, 0F, 0.25F,0F, 0F, 0.25F,0F, 0F, 0.25F,0F, 0F, 0.25F,0F, 0F, 0.25F); // Box 23
    slideModel[0].setRotationPoint(0F, 0F, 0F);



    barrelAttachPoint = new Vector3f(9F / 16F, 3.25F / 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[0] = new ModelRendererTurbo(this, 16, 5, textureX, textureY);
    ammoModel[0].addShapeBox(0F, -0.9F, -0.5F, 2, 4, 1, 0F, /* 0 */ 0.9F, 0F, 0F, /* 1 */ -1.1F, 0F, 0F, /* 2 */ -1.1F, 0F, 0F, /* 3 */ 0.9F, 0F, 0F, /* 4 */ -0.1F, 0F, 0F, /* 5 */ -0.1F, 0F, 0F, /* 6 */ -0.1F, 0F, 0F, /* 7 */ -0.1F, 0F, 0F)
   
    translateAll(0F, 0F, 0F);
   
    barrelAttachPoint = new Vector3f(6.5F / 16F, 4F / 16F, 0F);
   
    scopeAttachPoint = new Vector3f(3F / 16F, 5F / 16F, 0F);
    scopeIsOnSlide = true;
   
    gunSlideDistance = 0.25F;
    animationType = EnumAnimationType.PISTOL_CLIP;
  }
View Full Code Here

   
    ammoModel[0] = new ModelRendererTurbo(this, 26, 6, textureX, textureY);
    ammoModel[0].addBox(1F, -1F, -7F, 3, 4, 6);   
   
    //Stock - Nope.
    stockAttachPoint = new Vector3f(3F / 16F, 5F / 16F, 0F);
   
    //Barrel - Nope.
    barrelAttachPoint = new Vector3f(11.75F / 16F, 3.5F / 16F, 0F);
       
    //Scope
    scopeAttachPoint = new Vector3f(0F, 5F / 16F, 0F);
   
    defaultScopeModel = new ModelRendererTurbo[1];
   
    defaultScopeModel[0] = new ModelRendererTurbo(this, 26, 10, textureX, textureY);
    defaultScopeModel[0].addBox(3.8F, 5F, -0.2F, 0.2F, 1, 0.4F);
   
    //Grip
    gripAttachPoint = new Vector3f(7.5F / 16F, 2F / 16F, 0F);
   
    gunSlideDistance = 0.25F;
    animationType = EnumAnimationType.BOTTOM_CLIP;
   
    tiltGunTime = 0.1F;
View Full Code Here

    gunModel[7].addBox(0F, 0F, 0F, 6, 2, 1, 0F); // gun10
    gunModel[7].setRotationPoint(9F, -3.2F, -1.2F);   
   
    //Scope
    scopeAttachPoint = new Vector3f(0F / 16F, 6.25F / 16F, 0F);
   
    defaultScopeModel = new ModelRendererTurbo[1];
   
    defaultScopeModel[0] = new ModelRendererTurbo(this,  030, textureX, textureY); // gun8
    defaultScopeModel[0].addBox(0F, 0F, 0F, 3, 1, 1, 0F); // gun8
    defaultScopeModel[0].setRotationPoint(-1.5F, 0F, -0.5F);

    //defaultStock
    defaultStockModel = new ModelRendererTurbo[2];
    defaultStockModel[0] = new ModelRendererTurbo(this,  828, textureX, textureY); // gun2SHAPE
    defaultStockModel[1] = new ModelRendererTurbo(this,  2027, textureX, textureY); // gun2SHAPE

    defaultStockModel[0].addShapeBox(0F, 0F, 0F, 4, 2, 2, 0F, 0F, 1F, 0F, 0F, 0F, 0F, 0F, 0F, 0F, 0F, 1F, 0F, 0F, -1F, 0F, 0F, 0F, 0F, 0F, 0F, 0F, 0F, -1F, 0F); //Test
    defaultStockModel[0].setRotationPoint(-6F, -3F, -1F);

    defaultStockModel[1].addShapeBox(0F, 0F, 0F, 5, 3, 2, 0F, 0F, 0F, 0F, 0F, -1F, 0F, 0F, -1F, 0F, 0F, 0F, 0F, 0F, 0F, 0F, 0F, 0F, 0F, 0F, 0F, 0F, 0F, 0F, 0F); //Test
    defaultStockModel[1].setRotationPoint(-11F, -5F, -1F);   
   
    stockAttachPoint = new Vector3f(1F / 16F, 4F / 16F, 0F);
   
    //Barrel   
    barrelAttachPoint = new Vector3f(25F / 16F, 5.25F / 16F, 0F);
   
    //Grip
    gripAttachPoint = new Vector3f(10F / 16F, 3F / 16F, 0F);

    //Bolt
    slideModel = new ModelRendererTurbo[1];
    slideModel[0] = new ModelRendererTurbo(this,  022, textureX, textureY); // bolt
View Full Code Here

    gunSlideDistance = 0F;
    animationType = EnumAnimationType.NONE;

    flipAll();
    translateAll(0, 0, 3);
    thirdPersonOffset = new Vector3f(0F, 0F, -0.2F);
  }
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.