From febda87ec528e76650c79cd7c2ec94baf9c37fec Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Mon, 12 Oct 2026 06:33:28 +0200 Subject: [PATCH] ContactTests: the docked-hull visitor is the heavy hull, which keeps closing after its first exchange With equal masses the first exchange stops the visitor and a second contact with the docked hull cannot show. Builds. Co-Authored-By: Claude Opus 5.5 --- tests/Aetheria.Shared.Tests/ContactTests.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/Aetheria.Shared.Tests/ContactTests.cs b/tests/Aetheria.Shared.Tests/ContactTests.cs index ddc07d11c..15c28119a 100644 --- a/tests/Aetheria.Shared.Tests/ContactTests.cs +++ b/tests/Aetheria.Shared.Tests/ContactTests.cs @@ -202,7 +202,8 @@ public sealed class ContactTests : IDisposable } // A docked hull rides its carrier's pose and velocity, so it is never a second body at the carrier's place: a - // ship closing on the carrier makes one contact, with the carrier. + // ship closing on the carrier makes one contact, with the carrier. (The visitor is the heavy hull: it keeps + // closing after the first exchange, so a second contact with the docked hull would show.) [Fact] public void ADockedHullTakesNoPartInContact() { @@ -210,7 +211,7 @@ public sealed class ContactTests : IDisposable var carrier = lab.Add("Solid", float3(0, 0, 0), float2(0, 0)); var docked = lab.Add("Solid", float3(0, 0, 0), float2(0, 0)); docked.SetParent(carrier); - var visitor = lab.Add("Solid", float3(10, 0, 0), float2(-10, 0)); + var visitor = lab.Add("Heavy", float3(10, 0, 0), float2(-10, 0)); lab.Step(); var contact = Assert.Single(lab.Events);