/** Sets the models various rotation angles. */ public void setRotationAngles( float par1, float par2, float par3, float par4, float par5, float par6) { field_40340_a.rotateAngleY = par4 / (180F / (float) Math.PI); field_40340_a.rotateAngleX = par5 / (180F / (float) Math.PI); field_40339_c.rotationPointY = 3F; field_40339_c.rotationPointZ = -1F; field_40339_c.rotateAngleX = -0.75F; field_40336_d.rotateAngleX = MathHelper.cos(par1 * 0.6662F) * 1.4F * par2 * 0.5F; field_40337_e.rotateAngleX = MathHelper.cos(par1 * 0.6662F + (float) Math.PI) * 1.4F * par2 * 0.5F; field_40336_d.rotateAngleY = 0.0F; field_40337_e.rotateAngleY = 0.0F; }
public ModelChevalBlanc() { textureWidth = 128; textureHeight = 64; Shape3 = new ModelRenderer(this, 8, 20); Shape3.addBox(0F, 0F, 0F, 1, 2, 2); Shape3.setRotationPoint(1F, -6F, -11F); Shape3.setTextureSize(128, 64); Shape3.mirror = true; setRotation(Shape3, 0.5576792F, 0F, 0F); Shape4 = new ModelRenderer(this, 77, 49); Shape4.addBox(-1.5F, 0F, 0F, 3, 10, 3); Shape4.setRotationPoint(0F, 2.2F, 14.33333F); Shape4.setTextureSize(128, 64); Shape4.mirror = true; setRotation(Shape4, 0.3346075F, 0F, 0F); head = new ModelRenderer(this, 0, 0); head.addBox(-4F, -4F, -9F, 6, 4, 12); head.setRotationPoint(1F, -6F, -11F); head.setTextureSize(128, 64); head.mirror = true; setRotation(head, 0.5576792F, 0F, 0F); body = new ModelRenderer(this, 83, 0); body.addBox(-6F, -10F, -7F, 12, 24, 10); body.setRotationPoint(0F, 5F, 2F); body.setTextureSize(128, 64); body.mirror = true; setRotation(body, 1.570796F, 0F, 0F); leg1 = new ModelRenderer(this, 32, 48); leg1.addBox(-3F, 0F, 0F, 4, 12, 4); leg1.setRotationPoint(-3F, 12F, 11.7F); leg1.setTextureSize(128, 64); leg1.mirror = true; setRotation(leg1, 0F, 0F, 0F); leg2 = new ModelRenderer(this, 48, 48); leg2.addBox(0F, 0F, 0F, 4, 12, 4); leg2.setRotationPoint(2F, 12F, 11.5F); leg2.setTextureSize(128, 64); leg2.mirror = true; setRotation(leg2, 0F, 0F, 0F); leg3 = new ModelRenderer(this, 17, 48); leg3.addBox(-3F, 0F, -3F, 4, 12, 4); leg3.setRotationPoint(-3F, 12F, -5F); leg3.setTextureSize(128, 64); leg3.mirror = true; setRotation(leg3, 0F, 0F, 0F); leg4 = new ModelRenderer(this, 0, 48); leg4.addBox(-1F, 0F, -3F, 4, 12, 4); leg4.setRotationPoint(3F, 12F, -5F); leg4.setTextureSize(128, 64); leg4.mirror = true; setRotation(leg4, 0F, 0F, 0F); Shape1 = new ModelRenderer(this, 43, 0); Shape1.addBox(-2.5F, -5F, -13F, 5, 7, 15); Shape1.setRotationPoint(0F, 5F, -6F); Shape1.setTextureSize(128, 64); Shape1.mirror = true; setRotation(Shape1, -0.9529016F, 0F, 0F); Shape2 = new ModelRenderer(this, 1, 20); Shape2.addBox(0F, 0F, 0F, 1, 2, 2); Shape2.setRotationPoint(1F, -6F, -11F); Shape2.setTextureSize(128, 64); Shape2.mirror = true; setRotation(Shape2, 0.5759587F, 0F, 0F); body.setRotationPoint(0.0F, 5F, 2.0F); leg1.rotationPointX--; leg2.rotationPointX++; leg1.rotationPointZ += 0.0F; leg2.rotationPointZ += 0.0F; leg3.rotationPointX--; leg4.rotationPointX++; leg3.rotationPointZ--; leg4.rotationPointZ--; }