Multiply, not divide (0.2 / 5 == 0.04)

This commit is contained in:
Sollace 2018-06-03 19:59:55 +02:00
parent bafe9aca31
commit da2d435ca2
2 changed files with 2 additions and 4 deletions

View file

@ -149,7 +149,7 @@ public abstract class AbstractPonyModel extends ModelPlayer implements IModel {
return 0;
}
return MathHelper.sin(MathHelper.sqrt(swingProgress) * PI * 2) * 0.2F;
return MathHelper.sin(MathHelper.sqrt(swingProgress) * PI * 2) * 0.04F;
}
protected void adjustBodyRiding() {
@ -167,8 +167,7 @@ public abstract class AbstractPonyModel extends ModelPlayer implements IModel {
* @param ticks Total whole and partial ticks since the entity's existance. Used in animations together with {@code swing} and {@code move}.
*/
protected void shakeBody(float move, float swing, float bodySwing, float ticks) {
tail.setRotationAndAngles(rainboom, move, swing, bodySwing, ticks);
bodySwing /= 5;
tail.setRotationAndAngles(rainboom, move, swing, bodySwing * 5, ticks);
upperTorso.rotateAngleY = bodySwing;
bipedBody.rotateAngleY = bodySwing;

View file

@ -19,7 +19,6 @@ public class ModelVillagerPony extends ModelAlicorn {
@Override
protected void shakeBody(float move, float swing, float bodySwing, float ticks) {
super.shakeBody(move, swing, bodySwing, ticks);
bodySwing /= 5;
bag.rotateAngleY = bodySwing;
apron.rotateAngleY = bodySwing;