Skip to content

Commit

Permalink
ai: remove debug line from planetary_defense_enemy
Browse files Browse the repository at this point in the history
  • Loading branch information
rlane committed Jan 3, 2025
1 parent b870100 commit 9a011d2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion shared/builtin_ai/src/challenge/planetary_defense_enemy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ impl Ship {

pub fn tick(&mut self) {
let dp = self.target - position();
draw_line(position(), self.target, 0x880000);
let err = velocity().normalize() - dp.normalize();
let acc =
dp.normalize() * max_forward_acceleration() - err * 10.0 * max_lateral_acceleration();
Expand Down

0 comments on commit 9a011d2

Please sign in to comment.