mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 16:24:23 +01:00
Multiply, not divide (0.2 / 5 == 0.04)
This commit is contained in:
parent
bafe9aca31
commit
da2d435ca2
2 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue