Better physics

This commit is contained in:
Anuken
2020-02-08 15:39:27 -05:00
parent 8814dbe29a
commit ba1f59aa71
9 changed files with 34 additions and 9 deletions

View File

@@ -83,6 +83,8 @@ abstract class UnitComp implements Healthc, Velc, Statusc, Teamc, Itemsc, Hitbox
@Override
public void update(){
drag(type.drag * (isGrounded() ? (floorOn().dragMultiplier) : 1f));
//apply knockback based on spawns
//TODO move elsewhere
if(team() != state.rules.waveTeam){