Topic category: Help with Minecraft modding (Java Edition)
hello,I want to animate my mob but I can not understand what are:floats(f,f1,f2,f3,f4,f5)
who can say me what mean every of this floats?I saw that f1 is used for legs and arms,and that f3 and 4 are used for head animation.And if is possible how to make animations concret for walking,attaking and death?
that is code of my mob: public void setRotationAngles(Entity e, float f, float f1, float f2, float f3, float f4) {
this.dreaptainfund2.rotateAngleX = MathHelper.cos(f * 1.0F) * 0.0F * f1;
this.stingainfata2.rotateAngleX = MathHelper.cos(f * 1.0F) * -1.0F * f1;
this.gura.rotateAngleX = MathHelper.cos(f * 0.0F) * f1;
this.captotal.rotateAngleY = f3 / (180F / (float) Math.PI);
this.captotal.rotateAngleX = f4 / (180F / (float) Math.PI);
this.dreaptainfata.rotateAngleX =f1;
this.dreaptainfund.rotateAngleX = MathHelper.cos(f/2)*f1 ;
To animate mobs, use the GeckoLib plugin and follow the instructions for it.