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 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-07 17:43:21 +02:00
commit db19ecfeb7

View file

@ -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);