prefRotation for units

This commit is contained in:
Anuken
2020-11-08 17:50:27 -05:00
parent a35f62d181
commit cbfb703cfb
5 changed files with 29 additions and 11 deletions
@@ -63,7 +63,6 @@ abstract class MinerComp implements Itemsc, Posc, Teamc, Rotc, Drawc, Unitc{
mineTimer = 0f;
}else if(mining()){
Item item = mineTile.drop();
lookAt(angleTo(mineTile.worldx(), mineTile.worldy()));
mineTimer += Time.delta *type.mineSpeed;
if(Mathf.chance(0.06 * Time.delta)){