Pony skulls now play their animations

This commit is contained in:
Sollace 2024-05-05 18:02:12 +01:00
parent c6560513bc
commit 411118d036
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -53,6 +53,13 @@ public class PiglinPonyModel extends ZomponyModel<HostileEntity> {
leftFlap.roll = 0.5235988F + MathHelper.cos(progress) * range; leftFlap.roll = 0.5235988F + MathHelper.cos(progress) * range;
} }
@Override
public void setHeadRotation(float animationProgress, float yaw, float pitch) {
super.setHeadRotation(animationProgress, yaw, pitch);
leftFlap.roll = -(float)(-(Math.cos((double)(animationProgress * (float) Math.PI * 0.2F * 1.2F)) + 2.5)) * 0.2F;
rightFlap.roll = -(float)(Math.cos((double)(animationProgress * (float) Math.PI * 0.2F)) + 2.5) * 0.2F;
}
@Override @Override
protected void rotateLegs(float move, float swing, float ticks, HostileEntity entity) { protected void rotateLegs(float move, float swing, float ticks, HostileEntity entity) {
super.rotateLegs(move, swing, ticks, entity); super.rotateLegs(move, swing, ticks, entity);