From 56bd748a16ff67201b39a6d7f8564f0a50222fbb Mon Sep 17 00:00:00 2001 From: Matthew Messinger Date: Wed, 8 Jun 2016 19:42:43 -0400 Subject: [PATCH] Fix sneaking legs --- .../com/brohoof/minelittlepony/model/PonyModelConstants.java | 4 ++-- .../brohoof/minelittlepony/model/pony/ModelPlayerPony.java | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/brohoof/minelittlepony/model/PonyModelConstants.java b/src/main/java/com/brohoof/minelittlepony/model/PonyModelConstants.java index 845545b3..c0a93859 100644 --- a/src/main/java/com/brohoof/minelittlepony/model/PonyModelConstants.java +++ b/src/main/java/com/brohoof/minelittlepony/model/PonyModelConstants.java @@ -19,7 +19,7 @@ public interface PonyModelConstants { float FIRSTP_ARM_CENTRE_Y = 4.0F; float FIRSTP_ARM_CENTRE_Z = 0.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_Y = -1.0F; float HEAD_CENTRE_Z = -2.0F; @@ -46,7 +46,7 @@ public interface PonyModelConstants { float RIGHT_WING_RP_Z_SNEAK = 2.0F; float ROTATE_270 = 4.712F; 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_Y = 0.0F; float TAIL_RP_Z = 0.0F; diff --git a/src/main/java/com/brohoof/minelittlepony/model/pony/ModelPlayerPony.java b/src/main/java/com/brohoof/minelittlepony/model/pony/ModelPlayerPony.java index 8938e569..994c479f 100644 --- a/src/main/java/com/brohoof/minelittlepony/model/pony/ModelPlayerPony.java +++ b/src/main/java/com/brohoof/minelittlepony/model/pony/ModelPlayerPony.java @@ -458,8 +458,6 @@ public class ModelPlayerPony extends AbstractPonyModel implements PonyModelConst this.bipedLeftArm.rotateAngleX -= SNEAK_LEG_X_ROTATION_ADJUSTMENT; this.bipedRightLeg.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() { + if (!this.isSneak) this.bipedBody.postRender(this.scale); this.bipedLeftArm.render(this.scale);