示例#1
0
  public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5) {

    TailM2.rotateAngleX = MathHelper.cos(f2 * .1F + 1F) * .5F;
    TailM3.rotateAngleX = -MathHelper.cos(f2 * .1F + 1F) * .25F;

    TailL.rotateAngleX = MathHelper.cos(f2 * .2F + 1F) * .25F;
    TailL2.rotateAngleX = -MathHelper.cos(f2 * .1F + 1F) * .5F;
    TailL3.rotateAngleX = MathHelper.cos(f2 * .1F + 1F) * .75F;

    TailR.rotateAngleX = -MathHelper.cos(f2 * .2F + 1F) * .25F;
    TailR2.rotateAngleX = -MathHelper.cos(f2 * .1F + 1F) * .5F;
    TailR3.rotateAngleX = -MathHelper.cos(f2 * .1F + 1F) * .25F;
  }
示例#2
0
 private void setRotation(PixelmonModelRenderer model, float x, float y, float z) {
   model.rotateAngleX = x;
   model.rotateAngleY = y;
   model.rotateAngleZ = z;
 }