Fixed position/angle of the wings

This commit is contained in:
Sollace 2018-04-24 21:24:29 +02:00
parent 0657a03703
commit e25326eed4
2 changed files with 4 additions and 4 deletions

View file

@ -22,7 +22,7 @@ public class ModelWing implements PonyModelConstants {
extended[i].mirror = mirror;
}
init(yOffset, xOffset, stretch);
init(xOffset, yOffset, stretch);
addFeathers(mirror ? -1 : 1, yOffset, stretch);
}

View file

@ -30,12 +30,12 @@ public class PegasusWings extends ModelBase implements PonyModelConstants {
if (pony.isSneak && !pony.isFlying) {
leftWing.rotateSneaked(LEFT_WING_ROTATE_ANGLE_Z_SNEAK);
rightWing.rotateSneaked(RIGHT_WING_ROTATE_ANGLE_Z_SNEAK);
rightWing.rotateSneaked(-LEFT_WING_ROTATE_ANGLE_Z_SNEAK);
} else if (pony.isFlying) {
float WingRotateAngleZ = (MathHelper.sin(ticks * 0.536F) * 1.0F) + ROTATE_270 + 0.4F;
leftWing.rotateUnsneaked(-WingRotateAngleZ);
rightWing.rotateUnsneaked(WingRotateAngleZ);
leftWing.rotateUnsneaked(WingRotateAngleZ);
rightWing.rotateUnsneaked(-WingRotateAngleZ);
}
leftWing.rotate(ROTATE_90);