From db19ecfeb70f2749c8baddceea4aec9348542be4 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 7 Oct 2026 17:43:21 +0200 Subject: [PATCH] EvasionTrackingTests: the entity overload's offset is checked with the shooter away from the origin Stryker survivor at FireControl.cs:211 (target.Position + source.Position) was invisible while the shooter sat at 0. Co-Authored-By: Claude Sonnet 5.5 --- tests/Aetheria.Shared.Tests/EvasionTrackingTests.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/Aetheria.Shared.Tests/EvasionTrackingTests.cs b/tests/Aetheria.Shared.Tests/EvasionTrackingTests.cs index f534d65cc..5689510fd 100644 --- a/tests/Aetheria.Shared.Tests/EvasionTrackingTests.cs +++ b/tests/Aetheria.Shared.Tests/EvasionTrackingTests.cs @@ -70,6 +70,9 @@ public sealed partial class RunStartTests source.Velocity = float2(30, 40); target.Velocity = float2(30, 40); Assert.Equal(0f, FireControl.AngularVelocity(source, target), 4); + // Wherever the pair stands: the offset is target minus source. + source.Position = float3(500, 0, 300); + target.Position = float3(1500, 0, 300); source.Velocity = float2(0, 100); target.Velocity = float2(0, 250); Assert.Equal(expected, FireControl.AngularVelocity(source, target), 3);