001    package net.minecraft.src;
002    
003    import cpw.mods.fml.common.Side;
004    import cpw.mods.fml.common.asm.SideOnly;
005    
006    @SideOnly(Side.CLIENT)
007    public class ModelZombie extends ModelBiped
008    {
009        /**
010         * Sets the models various rotation angles.
011         */
012        public void setRotationAngles(float par1, float par2, float par3, float par4, float par5, float par6)
013        {
014            super.setRotationAngles(par1, par2, par3, par4, par5, par6);
015            float var7 = MathHelper.sin(this.onGround * (float)Math.PI);
016            float var8 = MathHelper.sin((1.0F - (1.0F - this.onGround) * (1.0F - this.onGround)) * (float)Math.PI);
017            this.bipedRightArm.rotateAngleZ = 0.0F;
018            this.bipedLeftArm.rotateAngleZ = 0.0F;
019            this.bipedRightArm.rotateAngleY = -(0.1F - var7 * 0.6F);
020            this.bipedLeftArm.rotateAngleY = 0.1F - var7 * 0.6F;
021            this.bipedRightArm.rotateAngleX = -((float)Math.PI / 2F);
022            this.bipedLeftArm.rotateAngleX = -((float)Math.PI / 2F);
023            this.bipedRightArm.rotateAngleX -= var7 * 1.2F - var8 * 0.4F;
024            this.bipedLeftArm.rotateAngleX -= var7 * 1.2F - var8 * 0.4F;
025            this.bipedRightArm.rotateAngleZ += MathHelper.cos(par3 * 0.09F) * 0.05F + 0.05F;
026            this.bipedLeftArm.rotateAngleZ -= MathHelper.cos(par3 * 0.09F) * 0.05F + 0.05F;
027            this.bipedRightArm.rotateAngleX += MathHelper.sin(par3 * 0.067F) * 0.05F;
028            this.bipedLeftArm.rotateAngleX -= MathHelper.sin(par3 * 0.067F) * 0.05F;
029        }
030    }