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:
parent
7d80af6dfe
commit
db19ecfeb7
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue