public void setRotationAngles( float par1, float par2, float par3, float yawDegrees, float pitchDegrees, float scale) { head.pitch = pitchDegrees / (180F / (float) Math.PI); head.yaw = yawDegrees / (180F / (float) Math.PI); bill.pitch = head.pitch; bill.yaw = head.yaw; chin.pitch = head.pitch; chin.yaw = head.yaw; body.pitch = (float) Math.PI / 2F; rightLeg.pitch = MathHelper.cos(par1 * 0.6662F) * 1.4F * par2; leftLeg.pitch = MathHelper.cos(par1 * 0.6662F + (float) Math.PI) * 1.4F * par2; rightWing.roll = par3; leftWing.roll = -par3; }
private void setRotation(ModelPart model, float x, float y, float z) { model.pitch = x; model.yaw = y; model.roll = z; }