mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-29 07:27:59 +01:00
Fix sneaking legs
This commit is contained in:
parent
40d8ba6704
commit
56bd748a16
2 changed files with 3 additions and 4 deletions
|
@ -19,7 +19,7 @@ public interface PonyModelConstants {
|
||||||
float FIRSTP_ARM_CENTRE_Y = 4.0F;
|
float FIRSTP_ARM_CENTRE_Y = 4.0F;
|
||||||
float FIRSTP_ARM_CENTRE_Z = 0.0F;
|
float FIRSTP_ARM_CENTRE_Z = 0.0F;
|
||||||
float FRONT_LEG_RP_Y_NOTSNEAK = 8.0F;
|
float FRONT_LEG_RP_Y_NOTSNEAK = 8.0F;
|
||||||
float FRONT_LEG_RP_Y_SNEAK = 6.0F;
|
float FRONT_LEG_RP_Y_SNEAK = 8.0F;
|
||||||
float HEAD_CENTRE_X = 0.0F;
|
float HEAD_CENTRE_X = 0.0F;
|
||||||
float HEAD_CENTRE_Y = -1.0F;
|
float HEAD_CENTRE_Y = -1.0F;
|
||||||
float HEAD_CENTRE_Z = -2.0F;
|
float HEAD_CENTRE_Z = -2.0F;
|
||||||
|
@ -46,7 +46,7 @@ public interface PonyModelConstants {
|
||||||
float RIGHT_WING_RP_Z_SNEAK = 2.0F;
|
float RIGHT_WING_RP_Z_SNEAK = 2.0F;
|
||||||
float ROTATE_270 = 4.712F;
|
float ROTATE_270 = 4.712F;
|
||||||
float ROTATE_90 = 1.571F;
|
float ROTATE_90 = 1.571F;
|
||||||
float SNEAK_LEG_X_ROTATION_ADJUSTMENT = 0.8F;
|
float SNEAK_LEG_X_ROTATION_ADJUSTMENT = 0.4F;
|
||||||
float TAIL_RP_X = 0.0F;
|
float TAIL_RP_X = 0.0F;
|
||||||
float TAIL_RP_Y = 0.0F;
|
float TAIL_RP_Y = 0.0F;
|
||||||
float TAIL_RP_Z = 0.0F;
|
float TAIL_RP_Z = 0.0F;
|
||||||
|
|
|
@ -458,8 +458,6 @@ public class ModelPlayerPony extends AbstractPonyModel implements PonyModelConst
|
||||||
this.bipedLeftArm.rotateAngleX -= SNEAK_LEG_X_ROTATION_ADJUSTMENT;
|
this.bipedLeftArm.rotateAngleX -= SNEAK_LEG_X_ROTATION_ADJUSTMENT;
|
||||||
this.bipedRightLeg.rotationPointY = FRONT_LEG_RP_Y_SNEAK;
|
this.bipedRightLeg.rotationPointY = FRONT_LEG_RP_Y_SNEAK;
|
||||||
this.bipedLeftLeg.rotationPointY = FRONT_LEG_RP_Y_SNEAK;
|
this.bipedLeftLeg.rotationPointY = FRONT_LEG_RP_Y_SNEAK;
|
||||||
this.bipedRightArm.rotationPointY = 1;
|
|
||||||
this.bipedLeftArm.rotationPointY = 1;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -611,6 +609,7 @@ public class ModelPlayerPony extends AbstractPonyModel implements PonyModelConst
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void renderLegs() {
|
protected void renderLegs() {
|
||||||
|
if (!this.isSneak)
|
||||||
this.bipedBody.postRender(this.scale);
|
this.bipedBody.postRender(this.scale);
|
||||||
|
|
||||||
this.bipedLeftArm.render(this.scale);
|
this.bipedLeftArm.render(this.scale);
|
||||||
|
|
Loading…
Reference in a new issue