Adjust riding position of all races

This commit is contained in:
Sollace 2018-08-22 14:32:02 +02:00
parent 5ce82e42ce
commit d135d5601f
2 changed files with 7 additions and 5 deletions

View file

@ -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);

View file

@ -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: