mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-04-01 01:05:27 +02:00
Fixed arms being slightly detached off of pillager's bodies when holding a crossbow
This commit is contained in:
parent
e5f2170186
commit
9132097c41
1 changed files with 4 additions and 6 deletions
|
@ -141,7 +141,7 @@ public abstract class AbstractPonyModel<T extends LivingEntity> extends ClientPo
|
||||||
head.setPivot(0, 0, 0);
|
head.setPivot(0, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
leftLeg.pivotZ = 15;
|
leftLeg.pivotZ = 14;
|
||||||
leftLeg.pivotY = 9;
|
leftLeg.pivotY = 9;
|
||||||
leftLeg.pitch = -PI / 4;
|
leftLeg.pitch = -PI / 4;
|
||||||
leftLeg.yaw = -PI / 5;
|
leftLeg.yaw = -PI / 5;
|
||||||
|
@ -246,10 +246,8 @@ public abstract class AbstractPonyModel<T extends LivingEntity> extends ClientPo
|
||||||
float sin = MathHelper.sin(body.yaw) * 5;
|
float sin = MathHelper.sin(body.yaw) * 5;
|
||||||
float cos = MathHelper.cos(body.yaw) * 5;
|
float cos = MathHelper.cos(body.yaw) * 5;
|
||||||
|
|
||||||
float spread = attributes.isGoingFast ? 2 : 1;
|
rightArm.pivotZ = 2 + sin;
|
||||||
|
leftArm.pivotZ = 2 - sin;
|
||||||
rightArm.pivotZ = spread + sin;
|
|
||||||
leftArm.pivotZ = spread - sin;
|
|
||||||
|
|
||||||
float legRPX = cos - getLegOutset() - 0.001F;
|
float legRPX = cos - getLegOutset() - 0.001F;
|
||||||
|
|
||||||
|
@ -265,7 +263,7 @@ public abstract class AbstractPonyModel<T extends LivingEntity> extends ClientPo
|
||||||
leftArm.yaw += body.yaw;
|
leftArm.yaw += body.yaw;
|
||||||
|
|
||||||
rightArm.pivotY = leftArm.pivotY = 8;
|
rightArm.pivotY = leftArm.pivotY = 8;
|
||||||
rightLeg.pivotZ = leftLeg.pivotZ = 10;
|
rightLeg.pivotZ = leftLeg.pivotZ = 11;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue