mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-01 03:26:44 +01:00
Adjust limb angle when flying
This commit is contained in:
parent
aff0a488a4
commit
6c08e5603c
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue