From d135d5601f6ecdefd52fda54002582a06aa0d099 Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 22 Aug 2018 14:32:02 +0200 Subject: [PATCH] Adjust riding position of all races --- .../java/com/minelittlepony/model/AbstractPonyModel.java | 6 ++---- .../com/minelittlepony/transform/PonyTransformation.java | 6 +++++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/minelittlepony/model/AbstractPonyModel.java b/src/main/java/com/minelittlepony/model/AbstractPonyModel.java index 112cb843..6bf06120 100644 --- a/src/main/java/com/minelittlepony/model/AbstractPonyModel.java +++ b/src/main/java/com/minelittlepony/model/AbstractPonyModel.java @@ -126,12 +126,12 @@ public abstract class AbstractPonyModel extends ModelPlayer implements IModel, P } else if (isRiding) { adjustBodyRiding(); bipedLeftLeg.rotationPointZ = 15; - bipedLeftLeg.rotationPointY = 10; + bipedLeftLeg.rotationPointY = 9; bipedLeftLeg.rotateAngleX = -PI / 4; bipedLeftLeg.rotateAngleY = -PI / 5; bipedRightLeg.rotationPointZ = 15; - bipedRightLeg.rotationPointY = 10; + bipedRightLeg.rotationPointY = 9; bipedRightLeg.rotateAngleX = -PI / 4; bipedRightLeg.rotateAngleY = PI / 5; @@ -838,8 +838,6 @@ public abstract class AbstractPonyModel extends ModelPlayer implements IModel, P @Override public void transform(BodyPart part) { - if (isRiding()) translate(0, -0.4F, -0.2F); - if (isSleeping()) { rotate(90, 1, 0, 0); rotate(180, 0, 1, 0); diff --git a/src/main/java/com/minelittlepony/transform/PonyTransformation.java b/src/main/java/com/minelittlepony/transform/PonyTransformation.java index 9a036ad8..25e8da54 100644 --- a/src/main/java/com/minelittlepony/transform/PonyTransformation.java +++ b/src/main/java/com/minelittlepony/transform/PonyTransformation.java @@ -13,6 +13,7 @@ public enum PonyTransformation { public void transform(IModel model, BodyPart part) { if (model.isCrouching()) translate(0, -0.2F, 0); if (model.isSleeping()) translate(0, -0.61F, 0); + if (model.isRiding()) translate(0, -0.2F, -0.2F); switch (part) { case NECK: @@ -30,6 +31,7 @@ public enum PonyTransformation { public void transform(IModel model, BodyPart part) { if (model.isCrouching()) translate(0, -0.15F, 0); if (model.isSleeping()) translate(0, -0.98F, 0.2F); + if (model.isRiding()) translate(0, 0, -0.2F); switch (part) { case NECK: @@ -60,7 +62,7 @@ public enum PonyTransformation { public void transform(IModel model, BodyPart part) { if (model.isCrouching()) translate(0, -0.3F, 0); if (model.isSleeping()) translate(0, -0.6F, -0.5F); - if (model.isRiding()) translate(0, -0.4F, 0); + if (model.isRiding()) translate(0, -0.6F, -0.2F); translate(0, 0.2F, 0); @@ -86,6 +88,7 @@ public enum PonyTransformation { public void transform(IModel model, BodyPart part) { if (model.isCrouching()) translate(0, -0.15F, 0); if (model.isSleeping()) translate(0, -0.5F, 0.25F); + if (model.isRiding()) translate(0, 0.1F, -0.2F); switch (part) { case NECK: @@ -114,6 +117,7 @@ public enum PonyTransformation { public void transform(IModel model, BodyPart part) { if (model.isCrouching()) translate(0, -0.15F, 0); if (model.isSleeping()) translate(0, -0.5F, 0.25F); + if (model.isRiding()) translate(0, -0.4F, -0.2F); switch (part) { case NECK: