mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 08:14:23 +01:00
Fix some head position and clipping issues
This commit is contained in:
parent
0bf7559884
commit
787a24280a
1 changed files with 7 additions and 5 deletions
|
@ -26,6 +26,7 @@ public enum PonyTransformation {
|
|||
if (model.getAttributes().isCrouching) stack.translate(-0.03F, 0.03F, 0.1F);
|
||||
break;
|
||||
case HEAD:
|
||||
stack.translate(0, 0, 0.1F);
|
||||
if (model.getAttributes().isCrouching) stack.translate(0, 0.1F, 0);
|
||||
if (model.getAttributes().isSwimmingRotated) stack.translate(0, 0.37F, 0.45F);
|
||||
break;
|
||||
|
@ -52,7 +53,7 @@ public enum PonyTransformation {
|
|||
if (model.getAttributes().isSwimmingRotated) stack.translate(0, 0.5F, 0.25F);
|
||||
break;
|
||||
case HEAD:
|
||||
stack.translate(0, -0.14F, -0.04F);
|
||||
stack.translate(0, -0.14F, 0.02F);
|
||||
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);
|
||||
|
@ -89,7 +90,7 @@ public enum PonyTransformation {
|
|||
if (model.getAttributes().isSwimmingRotated) stack.translate(0, 0.5F, 0.25F);
|
||||
break;
|
||||
case HEAD:
|
||||
stack.translate(0, -0.14F, -0.04F);
|
||||
stack.translate(0, -0.14F, 0.01F);
|
||||
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);
|
||||
|
@ -128,6 +129,7 @@ public enum PonyTransformation {
|
|||
if (model.getAttributes().isCrouching) stack.translate(0, -0.01F, 0.15F);
|
||||
break;
|
||||
case HEAD:
|
||||
stack.translate(0, 0, 0.16F);
|
||||
if (model.getAttributes().isSwimmingRotated) stack.translate(0, 0.9F, 0.9F);
|
||||
stack.scale(1.3F, 1.3F, 1.3F);
|
||||
break;
|
||||
|
@ -152,11 +154,11 @@ public enum PonyTransformation {
|
|||
switch (part) {
|
||||
case NECK:
|
||||
stack.translate(0, -0.21F, -0.01F);
|
||||
stack.scale(1, 1.3F, 1);
|
||||
stack.scale(1, 1.28F, 1);
|
||||
if (model.getAttributes().isCrouching) stack.translate(-0.02F, -0.02F, 0.1F);
|
||||
break;
|
||||
case HEAD:
|
||||
stack.translate(0, -0.11F, 0.03F);
|
||||
stack.translate(0, -0.11F, 0.095F);
|
||||
if (model.getAttributes().isCrouching) stack.translate(0, 0.04F, 0);
|
||||
if (model.getAttributes().isSwimmingRotated) stack.translate(0, 0.17F, 0.25F);
|
||||
break;
|
||||
|
@ -191,7 +193,7 @@ public enum PonyTransformation {
|
|||
if (model.getAttributes().isCrouching) stack.translate(-0.02F, -0.02F, 0.1F);
|
||||
break;
|
||||
case HEAD:
|
||||
stack.translate(0, -0.15F, 0.01F);
|
||||
stack.translate(0, -0.15F, 0.1F);
|
||||
if (model.getAttributes().isCrouching) stack.translate(0, 0.04F, 0);
|
||||
if (model.getAttributes().isSwimmingRotated) stack.translate(0, 0.8F, 0.85F);
|
||||
stack.scale(1.15F, 1.15F, 1.15F);
|
||||
|
|
Loading…
Reference in a new issue