Walker in tech tree

This commit is contained in:
Anuken
2022-05-02 17:51:40 -04:00
parent 4d54b8251d
commit 068c0dbe4d
7 changed files with 45 additions and 36 deletions

View File

@@ -59,7 +59,7 @@ public class PhysicsProcess implements AsyncProcess{
PhysicRef ref = entity.physref;
ref.body.layer =
entity.type.allowLegStep ? layerLegs :
entity.type.allowLegStep && entity.type.legPhysicsLayer ? layerLegs :
entity.isGrounded() ? layerGround : layerFlying;
ref.x = entity.x;
ref.y = entity.y;