Floats(mob animation)

Started by darkskripe on Sun, 10/04/2020 - 15:14

Topic category: Help with modding (Java Edition)

Last seen on 16:16, 25. Nov 2020
Joined May 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Floats(mob animation)
Sun, 10/04/2020 - 15:14

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 17:05, 26. Nov 2020
Joined Jan 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.