mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-26 22:38:00 +01:00
Fixed the buggy swimming animation
This commit is contained in:
parent
032ce5f651
commit
53c5719777
1 changed files with 13 additions and 7 deletions
|
@ -263,9 +263,6 @@ public abstract class AbstractPonyModel extends ModelPlayer implements IModel, P
|
||||||
rotateLegsOnGround(move, swing, ticks, entity);
|
rotateLegsOnGround(move, swing, ticks, entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
bipedRightArm.rotateAngleZ = 0;
|
|
||||||
bipedLeftArm.rotateAngleZ = 0;
|
|
||||||
|
|
||||||
float sin = MathHelper.sin(bipedBody.rotateAngleY) * 5;
|
float sin = MathHelper.sin(bipedBody.rotateAngleY) * 5;
|
||||||
float cos = MathHelper.cos(bipedBody.rotateAngleY) * 5;
|
float cos = MathHelper.cos(bipedBody.rotateAngleY) * 5;
|
||||||
|
|
||||||
|
@ -309,13 +306,16 @@ public abstract class AbstractPonyModel extends ModelPlayer implements IModel, P
|
||||||
float leftY = -forward - MathHelper.sin((move / 3) + 2*PI/3);
|
float leftY = -forward - MathHelper.sin((move / 3) + 2*PI/3);
|
||||||
|
|
||||||
float rightX = down + MathHelper.sin(move / 3) / 2;
|
float rightX = down + MathHelper.sin(move / 3) / 2;
|
||||||
|
float rightY = down - MathHelper.sin((move / 3) + 2);
|
||||||
|
|
||||||
|
|
||||||
bipedLeftArm.rotateAngleX = leftX;
|
bipedLeftArm.rotateAngleX = -leftX;
|
||||||
bipedLeftArm.rotateAngleY = leftY;
|
bipedLeftArm.rotateAngleY = -rightY/4 - leftX/3;
|
||||||
|
bipedLeftArm.rotateAngleZ = -leftY/10 - leftX/3;
|
||||||
|
|
||||||
bipedRightArm.rotateAngleY = -leftY;
|
bipedRightArm.rotateAngleX = -rightX;
|
||||||
bipedRightArm.rotateAngleX = leftX;
|
bipedRightArm.rotateAngleY = -leftY/4 - leftX/3;
|
||||||
|
bipedRightArm.rotateAngleZ = -rightY/10 - leftX/3;
|
||||||
|
|
||||||
bipedLeftLeg.rotateAngleX = leftX;
|
bipedLeftLeg.rotateAngleX = leftX;
|
||||||
bipedRightLeg.rotateAngleX = rightX;
|
bipedRightLeg.rotateAngleX = rightX;
|
||||||
|
@ -348,6 +348,9 @@ public abstract class AbstractPonyModel extends ModelPlayer implements IModel, P
|
||||||
|
|
||||||
bipedRightArm.rotateAngleY = 0.2F;
|
bipedRightArm.rotateAngleY = 0.2F;
|
||||||
bipedRightLeg.rotateAngleY = -0.2F;
|
bipedRightLeg.rotateAngleY = -0.2F;
|
||||||
|
|
||||||
|
bipedRightArm.rotateAngleZ = 0;
|
||||||
|
bipedLeftArm.rotateAngleZ = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -376,6 +379,9 @@ public abstract class AbstractPonyModel extends ModelPlayer implements IModel, P
|
||||||
|
|
||||||
bipedLeftLeg.rotateAngleY = 0;
|
bipedLeftLeg.rotateAngleY = 0;
|
||||||
bipedRightLeg.rotateAngleY = 0;
|
bipedRightLeg.rotateAngleY = 0;
|
||||||
|
|
||||||
|
bipedRightArm.rotateAngleZ = 0;
|
||||||
|
bipedLeftArm.rotateAngleZ = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected float getLegOutset() {
|
protected float getLegOutset() {
|
||||||
|
|
Loading…
Reference in a new issue