Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

I am trying to make me entity animations work right but all the legs no matter what move all at the same time.

 

public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)

{

super.render(entity, f, f1, f2, f3, f4, f5);

setRotationAngles(f, f1, f2, f3, f4, f5, entity);

this.horn1.render(f5);

this.horn4.render(f5);

this.horn5.render(f5);

this.horn6.render(f5);

this.head.render(f5);

this.body.render(f5);

this.leg1.render(f5);

this.leg2.render(f5);

this.leg3.render(f5);

this.leg4.render(f5);

this.neck.render(f5);

this.horn2.render(f5);

this.tail.render(f5);

this.horn3.render(f5);

this.nose.render(f5);

}

 

private void setRotation(ModelRenderer model, float x, float y, float z)

{

model.rotateAngleX = x;

model.rotateAngleY = y;

model.rotateAngleZ = z;

}

 

public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity)

{

super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);

this.leg1.rotateAngleX = (MathHelper.cos(f * 0.8F) * f1 / 1.5F);

this.leg3.rotateAngleX = (MathHelper.cos(f * 0.8F) * f1 / 1.5F);

this.leg2.rotateAngleX = (MathHelper.cos(f * 0.8F) * f1 / 1.5F);

this.leg4.rotateAngleX = (MathHelper.cos(f * 0.8F) * f1 / 1.5F);

}

 

 

 

Please post how to fix it!

Guest
This topic is now closed to further replies.

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.