More movement

This commit is contained in:
Anuken
2020-02-07 18:55:53 -05:00
parent 4265d40024
commit 8a9c92227d
4 changed files with 13 additions and 8 deletions

View File

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