GravityLowering: build the well Vector2 from the drawn orbit explicitly

Unity presenter file; not compiled by this pass (no Unity run).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-15 21:59:41 +02:00
commit fd00ad90ef

View file

@ -49,13 +49,16 @@ public static class GravityLowering
var i = 0;
if (zone != null)
foreach (var body in zone.PlanetInstances.Values)
{
var at = DrawAhead.Orbit(zone, body.BodyData.Orbit.Key, lead);
_records[i++] = new WellRecord
{
Position = DrawAhead.Orbit(zone, body.BodyData.Orbit.Key, lead).ToUnity(),
Position = new Vector2(at.x, at.y),
Strength = body.WellStrength,
CoreRadius = body.RocheLimit,
Reference = zone.WellReference(body)
};
}
wells.SetData(_records);
Shader.SetGlobalBuffer(WellsId, wells);