From 400db2139979c62b83f9e15126af59a6e711466e Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 8 Oct 2026 14:13:49 +0200 Subject: [PATCH] MiningCut3Tests: pin a chunk's bearing as pose minus the shooter's position (Stryker survivor FireControl.cs:142) Co-Authored-By: Claude Sonnet 5.5 --- tests/Aetheria.Shared.Tests/MiningCut3Tests.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/Aetheria.Shared.Tests/MiningCut3Tests.cs b/tests/Aetheria.Shared.Tests/MiningCut3Tests.cs index 06cfb077f..186f2a35d 100644 --- a/tests/Aetheria.Shared.Tests/MiningCut3Tests.cs +++ b/tests/Aetheria.Shared.Tests/MiningCut3Tests.cs @@ -747,6 +747,13 @@ public sealed partial class MiningCut3Tests : IDisposable Assert.True(ahead.Bears); Assert.Null(ahead.Subject); Assert.False(aside.Bears); + + // The bearing is the chunk's pose minus the shooter's position: from (100, -100) the side chunk at (150, 0) + // is 26 degrees off the nose, though its pose sum with the shooter's position would be far abeam. + var nearAt = float2(100, -100); + var near = SpawnShip(s, nearAt, sensor: true, weaponRanges: 300f); + Tick((shooter, eyeAt), (near, nearAt)); + Assert.True(FireControl.Solution(near.Weapons.Single(), near, new ChunkId(s.Belts[0], 1)).Bears); } // A writable copy of the shipped catalog plus a scratch run store, through a registry scoped to the shipped