AirDef v0.3.x: enemy intelligence, cold launch, MP4 and stability #131

Merged
chexit merged 106 commits from kimi-work into main 2026-11-06 15:41:20 +00:00
Showing only changes of commit e38ca0d9ab - Show all commits
+2 -1
View File
@@ -3099,7 +3099,8 @@ impl Sim {
let kill = self.rng.chance(spec.pk * fit * ratio);
// The same swept closest approach determines the physical impact, not the
// target's end-of-tick location. Velocities are per simulation tick.
impacts.insert(m.id, (t.pos - t.vel + t.vel * k, (m.vel - t.vel).length()));
let missile_step = if waiting.is_some() { end - before } else { m.pos - before };
impacts.insert(m.id, (t.pos - t.vel + t.vel * k, (missile_step - t.vel).length()));
missed += u32::from(!kill);
done.push((m.id, Some(t.id), kill, m.sam));
continue;