Every rail's period is derived from the field it orbits in; OrbitPeriod is deleted
Zone.PeriodAround is the one owner: round a body, the pull its well gives at the rail's distance (GravityField.Acceleration); round a bodyless node, the ring law (strength of the orbits inside, plus half of what shares the ring). Orbit.Period and AsteroidBelt.Periods are written once at zone build, before placement; BeltTargets copies the belt's periods. A parentless orbit has no field and stands at its phase. Fixtures lose OrbitPeriod and gain wells where their rails must move. Builds; the new OrbitsFromFieldTests follow in the next commit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8f491fd3c9
commit
a4977cbe48
13 changed files with 151 additions and 61 deletions
|
|
@ -59,8 +59,8 @@ public sealed class BeltTargets : ITargetProvider
|
|||
{
|
||||
order[i] = i;
|
||||
distances[i] = data.Asteroids[i].Distance;
|
||||
// Pose divides by the float period the curve returns; the keys must use the same one.
|
||||
_periods[i] = settings.OrbitPeriod.Evaluate(distances[i]);
|
||||
// The belt's own periods (Zone.PeriodAround), the very floats Pose divides by.
|
||||
_periods[i] = zone.AsteroidBelts[field].Periods[i];
|
||||
}
|
||||
Array.Sort(distances, order);
|
||||
_bands = new Band[(count + RocksPerBand - 1) / RocksPerBand];
|
||||
|
|
|
|||
Loading…
Reference in a new issue