More reasonable AI behavior

This commit is contained in:
Anuken
2020-03-21 14:29:00 -04:00
parent 3563c929af
commit 4813d6c8ff
6 changed files with 31 additions and 10 deletions

View File

@@ -28,7 +28,7 @@ public class FlyingAI extends AIController{
boolean shoot = false;
if(target != null){
attack(40f);
attack(80f);
shoot = unit.inRange(target);
@@ -88,7 +88,7 @@ public class FlyingAI extends AIController{
if(diff > 100f && vec.len() < circleLength){
vec.setAngle(unit.vel().angle());
}else{
vec.setAngle(Mathf.slerpDelta(unit.vel().angle(), vec.angle(), 0.44f));
vec.setAngle(Mathf.slerpDelta(unit.vel().angle(), vec.angle(), 0.6f));
}
vec.setLength(unit.type().speed * Time.delta());