Adjust head position and neck clipping on tall, lanky, and yearling models. Fixes #182

This commit is contained in:
Sollace 2021-02-26 11:29:31 +02:00
parent e1339fb2a8
commit 3e5960471b
2 changed files with 13 additions and 10 deletions

View file

@ -48,6 +48,7 @@ public class GuiPonySettings extends GameGui {
content.padding.top = 10;
content.padding.right = 10;
content.padding.bottom = 20;
content.padding.left = 10;
hiddenOptions = Screen.hasControlDown() && Screen.hasShiftDown();
}
@ -59,7 +60,7 @@ public class GuiPonySettings extends GameGui {
@SuppressWarnings("unchecked")
private void rebuildContent() {
content.padding.left = 10;
int LEFT = content.width / 2 - 210;
int RIGHT = content.width / 2 + 10;

View file

@ -45,12 +45,13 @@ public enum PonyTransformation {
switch (part) {
case NECK:
stack.translate(0, -0.15F, -0.07F);
stack.translate(0, -0.2F, -0.05F);
stack.scale(1, 1.3F, 1);
if (model.getAttributes().isCrouching) stack.translate(-0.03F, 0.16F, 0.07F);
if (model.getAttributes().isSwimmingRotated) stack.translate(0, 0.5F, 0.25F);
break;
case HEAD:
stack.translate(0, -0.17F, -0.04F);
stack.translate(0, -0.14F, -0.04F);
if (model.getAttributes().isSleeping) stack.translate(0, 0, -0.1F);
if (model.getAttributes().isCrouching) stack.translate(0, 0.15F, 0);
if (model.getAttributes().isSwimmingRotated) stack.translate(0, 0.45F, 0.45F);
@ -81,12 +82,13 @@ public enum PonyTransformation {
switch (part) {
case NECK:
stack.translate(0, -0.15F, -0.07F);
stack.translate(0, -0.2F, -0.07F);
stack.scale(1, 1.3F, 1);
if (model.getAttributes().isCrouching) stack.translate(-0.03F, 0.16F, 0.07F);
if (model.getAttributes().isSwimmingRotated) stack.translate(0, 0.5F, 0.25F);
break;
case HEAD:
stack.translate(0, -0.17F, -0.04F);
stack.translate(0, -0.14F, -0.04F);
if (model.getAttributes().isSleeping) stack.translate(0, 0, -0.1F);
if (model.getAttributes().isCrouching) stack.translate(0, 0.15F, 0);
if (model.getAttributes().isSwimmingRotated) stack.translate(0, 0.15F, 0.25F);
@ -148,12 +150,12 @@ public enum PonyTransformation {
switch (part) {
case NECK:
stack.translate(0, -0.09F, 0);
stack.scale(1, 1.1F, 1);
stack.translate(0, -0.21F, -0.01F);
stack.scale(1, 1.3F, 1);
if (model.getAttributes().isCrouching) stack.translate(-0.02F, -0.02F, 0.1F);
break;
case HEAD:
stack.translate(0.01F, -0.15F, 0);
stack.translate(0, -0.11F, 0.03F);
if (model.getAttributes().isCrouching) stack.translate(0, 0.04F, 0);
if (model.getAttributes().isSwimmingRotated) stack.translate(0, 0.17F, 0.25F);
break;
@ -183,8 +185,8 @@ public enum PonyTransformation {
switch (part) {
case NECK:
stack.translate(0, -0.09F, -0.01F);
stack.scale(1, 1.1F, 1);
stack.translate(0, -0.2F, -0.01F);
stack.scale(1, 1.3F, 1);
if (model.getAttributes().isCrouching) stack.translate(-0.02F, -0.02F, 0.1F);
break;
case HEAD: