Skip to content

Commit

Permalink
*shrugs*
Browse files Browse the repository at this point in the history
  • Loading branch information
MEEPofFaith committed Oct 26, 2024
1 parent 93abb30 commit da112c5
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ public void arcBulletDataInit(Bullet b){
a.updateAimPos(b);
}

@Override
public void updateHoming(Bullet b){
//Since the pitch calculation can only find one solution, only home when that one solution is the optimal one.
if(((ArcBulletData)b.data).zVel > 0) return;
super.updateHoming(b);
}

public static class ArcMissileData extends ArcBulletData{
public float accel;

Expand Down

0 comments on commit da112c5

Please sign in to comment.