This commit is contained in:
Anuken
2020-02-07 13:02:24 -05:00
parent 861b3ac3f4
commit 4265d40024
6 changed files with 29 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
package mindustry.entities.def;
import arc.util.*;
import mindustry.annotations.Annotations.*;
import mindustry.gen.*;
@@ -9,6 +10,14 @@ abstract class LegsComp implements Posc, Flyingc, Hitboxc, DrawLayerGroundUnderc
float baseRotation, walkTime;
@Override
public void update(){
if(vel().len() > 0.5f){
baseRotation = vel().angle();
walkTime += Time.delta()*vel().len()/1f;
}
}
@Override
public void drawGroundUnder(){
type().drawLegs(this);