mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 16:24:23 +01:00
Fixed position/angle of the wings
This commit is contained in:
parent
0657a03703
commit
e25326eed4
2 changed files with 4 additions and 4 deletions
|
@ -22,7 +22,7 @@ public class ModelWing implements PonyModelConstants {
|
||||||
extended[i].mirror = mirror;
|
extended[i].mirror = mirror;
|
||||||
}
|
}
|
||||||
|
|
||||||
init(yOffset, xOffset, stretch);
|
init(xOffset, yOffset, stretch);
|
||||||
addFeathers(mirror ? -1 : 1, yOffset, stretch);
|
addFeathers(mirror ? -1 : 1, yOffset, stretch);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,12 +30,12 @@ public class PegasusWings extends ModelBase implements PonyModelConstants {
|
||||||
|
|
||||||
if (pony.isSneak && !pony.isFlying) {
|
if (pony.isSneak && !pony.isFlying) {
|
||||||
leftWing.rotateSneaked(LEFT_WING_ROTATE_ANGLE_Z_SNEAK);
|
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) {
|
} else if (pony.isFlying) {
|
||||||
float WingRotateAngleZ = (MathHelper.sin(ticks * 0.536F) * 1.0F) + ROTATE_270 + 0.4F;
|
float WingRotateAngleZ = (MathHelper.sin(ticks * 0.536F) * 1.0F) + ROTATE_270 + 0.4F;
|
||||||
|
|
||||||
leftWing.rotateUnsneaked(-WingRotateAngleZ);
|
leftWing.rotateUnsneaked(WingRotateAngleZ);
|
||||||
rightWing.rotateUnsneaked(WingRotateAngleZ);
|
rightWing.rotateUnsneaked(-WingRotateAngleZ);
|
||||||
}
|
}
|
||||||
|
|
||||||
leftWing.rotate(ROTATE_90);
|
leftWing.rotate(ROTATE_90);
|
||||||
|
|
Loading…
Reference in a new issue