Adjust limb angle when flying

This commit is contained in:
Sollace 2021-08-19 13:29:39 +02:00
parent aff0a488a4
commit 6c08e5603c

View file

@ -274,6 +274,9 @@ public class PlayerPhysics extends EntityPhysics<PlayerEntity> implements Tickab
pitch += 0.09F;
((Leaner)entity).setLeaningPitch(Math.max(0, pitch));
}
entity.limbAngle = 20 + (float)Math.cos(entity.age / 7F) - 0.5F;
entity.limbDistance = this.thrustScale;
}
}