mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 08:14:23 +01:00
Pony skulls now play their animations
This commit is contained in:
parent
c6560513bc
commit
411118d036
1 changed files with 7 additions and 0 deletions
|
@ -53,6 +53,13 @@ public class PiglinPonyModel extends ZomponyModel<HostileEntity> {
|
|||
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
|
||||
protected void rotateLegs(float move, float swing, float ticks, HostileEntity entity) {
|
||||
super.rotateLegs(move, swing, ticks, entity);
|
||||
|
|
Loading…
Reference in a new issue