Animations help

Started by UnderWaves on Sun, 02/10/2019 - 13:04

Topic category: Help with MCreator modding

Last seen on 17:05, 14. Dec 2019
Joined Jan 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Animations help
Sun, 02/10/2019 - 13:04

Heelo everyone.
I'm trying to create a mob made of two rotating parts, can someone teach me how to make it rotate please?

0Upvote this forum topic
I believe this was asked…
Sun, 02/10/2019 - 19:04

I believe this was asked before, you can use search existing topics on animations.

0Upvote this forum topic
Last seen on 17:05, 14. Dec 2019
Joined Jan 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
okay, thank you.
Tue, 02/12/2019 - 14:07

okay, thank you.

0Upvote this forum topic
Last seen on 22:27, 9. Dec 2019
Joined Apr 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
This code forces specific…
Thu, 02/14/2019 - 13:24

This code forces specific part of your mob to do 360 rotation in X/Y/Z 

 

private void setRotation(ModelRenderer model, float rotX, float rotZ, float rotY) {
			model.rotateAngleX = degToRad(rotX);
			model.rotateAngleZ = degToRad(rotZ);
            model.rotateAngleY = degToRad(rotY);
               
		}
		         protected float degToRad(float degrees)
    {
        return degrees * (float)Math.PI / 180 ;
    }

		public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity e) {
			super.setRotationAngles(f, f1, f2, f3, f4, f5, e);
			this.Shape1.rotateAngleZ += degToRad(-0.002F);
			this.THing1.rotateAngleX += degToRad(-0.003F);
			this.THing2.rotateAngleX += degToRad(0.003F);
			this.THing3.rotateAngleX += degToRad(-0.003F);
			this.THing4.rotateAngleX += degToRad(0.003F);
		}

 

0Upvote this forum topic