Topic category: Advanced modding
I'm have trubble with my models for my mod. GandyManCan helped me to add these lines of code to make the model animate:
this.head.rotateAngleY = f3 / (180F / (float)Math.PI);
this.head.rotateAngleX = f4 / (180F / (float)Math.PI);
this.leftleg.rotateAngleX = MathHelper.cos(f * 1.0F) * -1.0F * f1;
this.rightleg.rotateAngleX = MathHelper.cos(f * 1.0F) * -1.0F * f1;
But the Problem is that the head won't animate correctly.
Here is an image (spoiler alert):
As you can see the head doesn't work at all.