Improved approach behavior in formations/logic

This commit is contained in:
Anuken
2020-12-10 12:51:07 -05:00
parent 28e18332a0
commit 2d6db1583b
5 changed files with 37 additions and 13 deletions

View File

@@ -83,4 +83,12 @@ abstract class MechComp implements Posc, Flyingc, Hitboxc, Unitc, Mechc, Elevati
walked = true;
}
}
@Override
public void approach(Vec2 vector){
if(!vector.isZero(0.09f)){
//mark walking state when moving in a controlled manner
walked = true;
}
}
}