Fixed arms being dislocated from body for puppet NPCs when the body's Y-rotation is modified.

This commit is contained in:
Luis C.M committed 2022-12-22 10:40:54 -06:00
1 parent 74ed9d9de9
commit 343721c87a
1 file changed
+5
@@ -566,6 +566,11 @@ public class ModelMPM extends ModelNPCMale{
this.setInterpolatedAngles(job,bipedRightLegWear,job.rleg);
}
this.bipedRightArm.rotationPointZ = MathHelper.sin(this.bipedBody.rotateAngleY) * 5.0F;
this.bipedRightArm.rotationPointX = -MathHelper.cos(this.bipedBody.rotateAngleY) * 5.0F;
this.bipedLeftArm.rotationPointZ = -MathHelper.sin(this.bipedBody.rotateAngleY) * 5.0F;
this.bipedLeftArm.rotationPointX = MathHelper.cos(this.bipedBody.rotateAngleY) * 5.0F;
job.bipedRotsHead = new float[]{bipedHead.rotateAngleX,bipedHead.rotateAngleY,bipedHead.rotateAngleZ};
job.bipedRotsBody = new float[]{bipedBody.rotateAngleX,bipedBody.rotateAngleY,bipedBody.rotateAngleZ};
job.bipedRotsLeftArm = new float[]{bipedLeftArm.rotateAngleX,bipedLeftArm.rotateAngleY,bipedLeftArm.rotateAngleZ};