diff --git a/tests/AcDream.Core.Tests/Physics/IndoorContactPlaneRetentionTests.cs b/tests/AcDream.Core.Tests/Physics/IndoorContactPlaneRetentionTests.cs index fadfc7a..a8e24a0 100644 --- a/tests/AcDream.Core.Tests/Physics/IndoorContactPlaneRetentionTests.cs +++ b/tests/AcDream.Core.Tests/Physics/IndoorContactPlaneRetentionTests.cs @@ -26,9 +26,12 @@ namespace AcDream.Core.Tests.Physics; /// /// /// -/// Template: fixture pattern matches -/// (engine + DataCache + RegisterCellStructForTest + AddLandblock + MakeGroundedTransition). -/// Tested cell cell ID 0xA9B40166 (low 16 bits = 0x0166 ≥ 0x0100 → indoor branch fires). +/// Fixture pattern is a blend of +/// (engine + DataCache + RegisterCellStructForTest + AddLandblock setup) +/// and (sphere radius 0.48f matching +/// TryFindIndoorWalkablePlane's probe thresholds + BuildCellWithFloor +/// floor polygon pattern). +/// Tested cell ID 0xA9B40166 (low 16 bits = 0x0166 ≥ 0x0100 → indoor branch fires). /// /// /// @@ -186,7 +189,9 @@ public class IndoorContactPlaneRetentionTests { var t = new Transition(); t.SpherePath.InitPath(worldPos, worldTarget, cellId, SphereRadius); - t.SpherePath.SetCheckPos(worldPos, cellId); + // InitPath above already set CheckPos = begin; no second SetCheckPos + // needed because this test doesn't move the sphere from begin to a + // different destination (unlike multi-cell tests that walk a path). // Grounded state — mirrors BSPStepUpFixtures.MakeGroundedTransition. t.ObjectInfo.State = ObjectInfoState.Contact | ObjectInfoState.OnWalkable;