Turn the shooter to the heading the direct-absorb test fires along
The mount fires inside an arc about the shooter's facing; the first version fired backwards and found no hit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
446f84458c
commit
789fe9fcdc
1 changed files with 2 additions and 0 deletions
|
|
@ -332,6 +332,8 @@ public sealed partial class FireControlCut124Tests
|
|||
{
|
||||
var e = Build(TestSettings(), SolidShape(21, 3), velocity: 0, damage: 100f, equipShield: shielded, shieldCapacity: 100000f, custom: new[] { ("Marker", new Shape(), new int2(2, 1), 1f) });
|
||||
e.Weapon.WeaponData.DamageType = DamageType.Thermal;
|
||||
// The mount fires inside an arc about the shooter's facing, so the shooter turns to the heading it fires along.
|
||||
e.Shooter.Direction = float2(-.6f, -.8f);
|
||||
e.Target.Position = e.Shooter.Position + float3(-30f, 0f, -40f);
|
||||
for (var i = 0; i < 30; i++) e.Zone.Update(.1f);
|
||||
var subs = new List<IDisposable>();
|
||||
|
|
|
|||
Loading…
Reference in a new issue