Gradle update / Mech animation fixes / Formation movement tweaks

This commit is contained in:
Anuken
2021-03-04 13:40:50 -05:00
parent 3ccdf45ed1
commit d863c971c2
4 changed files with 6 additions and 6 deletions

View File

@@ -48,7 +48,7 @@ public class FormationAI extends AIController implements FormationMember{
Vec2 realtarget = vec.set(target).add(leader.vel);
float speed = unit.realSpeed() * unit.floorSpeedMultiplier() * Time.delta;
float speed = unit.realSpeed() * Time.delta;
unit.approach(Mathf.arrive(unit.x, unit.y, realtarget.x, realtarget.y, unit.vel, speed, 0f, speed, 1f).scl(1f / Time.delta));
if(unit.canMine() && leader.canMine()){

View File

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