Floats(mob animation)

Started by darkskripe on

Topic category: Help with modding (Java Edition)

Last seen on 19:25, 18. Apr 2021
Joined May 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Floats(mob animation)

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 ;

Last seen on 22:49, 17. Mar 2021
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
To animate mobs, use the…
Sun, 10/11/2020 - 21:13

To animate mobs, use the GeckoLib plugin and follow the instructions for it.