Jump to content

[1.8]Animations not working<Not Solved!>


many231

Recommended Posts

I am trying to make me entity animations work right but all the legs no matter what move all at the same time.

 

public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)

{

super.render(entity, f, f1, f2, f3, f4, f5);

setRotationAngles(f, f1, f2, f3, f4, f5, entity);

this.horn1.render(f5);

this.horn4.render(f5);

this.horn5.render(f5);

this.horn6.render(f5);

this.head.render(f5);

this.body.render(f5);

this.leg1.render(f5);

this.leg2.render(f5);

this.leg3.render(f5);

this.leg4.render(f5);

this.neck.render(f5);

this.horn2.render(f5);

this.tail.render(f5);

this.horn3.render(f5);

this.nose.render(f5);

}

 

private void setRotation(ModelRenderer model, float x, float y, float z)

{

model.rotateAngleX = x;

model.rotateAngleY = y;

model.rotateAngleZ = z;

}

 

public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity)

{

super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);

this.leg1.rotateAngleX = (MathHelper.cos(f * 0.8F) * f1 / 1.5F);

this.leg3.rotateAngleX = (MathHelper.cos(f * 0.8F) * f1 / 1.5F);

this.leg2.rotateAngleX = (MathHelper.cos(f * 0.8F) * f1 / 1.5F);

this.leg4.rotateAngleX = (MathHelper.cos(f * 0.8F) * f1 / 1.5F);

}

 

 

 

Please post how to fix it!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.