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:
parent
63124add6b
commit
fd00ad90ef
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue