From b3eb6b0c37b14a1564f59f8e460394f6af59ce91 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 17 Oct 2026 13:56:32 +0200 Subject: [PATCH] Floater fixtures: planets placed where the field changes under the floaters; probe removed Co-Authored-By: Claude Opus 5.5 --- Assets/Scripts/Editor/DrawnPoseWiringVerify.cs | 2 +- tests/Aetheria.Shared.Tests/PickupTests.cs | 12 +----------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/Assets/Scripts/Editor/DrawnPoseWiringVerify.cs b/Assets/Scripts/Editor/DrawnPoseWiringVerify.cs index 6a9f8bbea..bba726be6 100644 --- a/Assets/Scripts/Editor/DrawnPoseWiringVerify.cs +++ b/Assets/Scripts/Editor/DrawnPoseWiringVerify.cs @@ -120,7 +120,7 @@ namespace Aetheria.EditorTools // A sun and a planet on a moving rail round it, both near the bodies below: the field under a floater changes with the // drawn time, so a presenter that samples it at the step's time, drops it, or reads lead 0 for the height draws a different y. var sunOrbit = cache.Upsert(new OrbitData { FixedPosition = new float2(-60, -40) }).Key; - var planetOrbit = cache.Upsert(new OrbitData { Parent = new CultRecordRef(sunOrbit), Distance = 40f, Phase = .3f }).Key; + var planetOrbit = cache.Upsert(new OrbitData { Parent = new CultRecordRef(sunOrbit), Distance = 40f, Phase = .125f }).Key; var pack = new ZonePack { Radius = 5000f, Mass = 10000f }; pack.Orbits.Add(new CultRecordRef(sunOrbit)); pack.Orbits.Add(new CultRecordRef(planetOrbit)); diff --git a/tests/Aetheria.Shared.Tests/PickupTests.cs b/tests/Aetheria.Shared.Tests/PickupTests.cs index 19c3dbcdf..af979eea5 100644 --- a/tests/Aetheria.Shared.Tests/PickupTests.cs +++ b/tests/Aetheria.Shared.Tests/PickupTests.cs @@ -290,22 +290,12 @@ public sealed class PickupTests : IDisposable ship.TractorCommand = 1; for (var tick = 1; tick <= 150; tick++) lab.Zone.Update(1 / 60f); Assert.NotEmpty(seen); - Assert.True(abs(lab.Zone.GetHeight(float2(40, 0), lab.Zone.ExactTime) - lab.Zone.GetHeight(float2(40, 0), start)) > .01f, $"the wells did not move: {lab.Zone.GetHeight(float2(40, 0), lab.Zone.ExactTime)} vs {lab.Zone.GetHeight(float2(40, 0), start)}"); + Assert.True(abs(lab.Zone.GetHeight(float2(40, 0), lab.Zone.ExactTime) - lab.Zone.GetHeight(float2(40, 0), start)) > .01f, "the wells did not move"); Assert.All(seen, s => Assert.Equal(lab.Zone.GetHeight(s.Event.TargetPosition.xz, s.Time) - 1.5f, s.Event.TargetPosition.y, 3)); Assert.All(seen, s => Assert.True(abs(s.Event.TargetPosition.y - (-1.5f)) > 1f, "the grab point sits on the bare layer, the field dropped")); } - [Fact] - public void ZProbe() - { - var lab = Build(Beam(), wells: true); - var t0 = lab.Zone.ExactTime; - var o = new System.Text.StringBuilder(); - for (var i = 0; i < 3; i++) { foreach (var p in new[] { float2(0,0), float2(40,0) }) o.Append($"[t+{lab.Zone.ExactTime - t0:0.0} {p.x}: {lab.Zone.GetHeight(p, lab.Zone.ExactTime)}] "); for (var k = 0; k < 60; k++) lab.Zone.Update(1/60f); } - Assert.Fail(o.ToString()); - } - [Fact] public void GrabEventsNameTheFloatingItem() {