Re-added Tau

This commit is contained in:
Anuken
2020-05-23 21:53:11 -04:00
parent df08498d70
commit 65f63fd4d2
19 changed files with 762 additions and 651 deletions

View File

@@ -162,7 +162,7 @@ public abstract class BulletType extends Content{
public void update(Bulletc b){
if(homingPower > 0.0001f){
Teamc target = Units.closestTarget(b.team(), b.getX(), b.getY(), homingRange, e -> (e.isGrounded() && collidesGround) || (e.isFlying() && collidesAir));
Teamc target = Units.closestTarget(b.team(), b.getX(), b.getY(), homingRange, e -> (e.isGrounded() && collidesGround) || (e.isFlying() && collidesAir), t -> collidesGround);
if(target != null){
b.vel().setAngle(Mathf.slerpDelta(b.rotation(), b.angleTo(target), homingPower));
}
@@ -178,8 +178,6 @@ public abstract class BulletType extends Content{
return ContentType.bullet;
}
//TODO change 'create' to 'at'
public Bulletc create(Teamc owner, float x, float y, float angle){
return create(owner, owner.team(), x, y, angle);
}