mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Use more segments for large orbits
This commit is contained in:
parent
b4eb33df20
commit
a89c79a91a
@ -5,6 +5,7 @@ using UnityEngine;
|
||||
using NewHorizons.External.Configs;
|
||||
using Logger = NewHorizons.Utility.Logger;
|
||||
using NewHorizons.Components.Orbital;
|
||||
using System;
|
||||
|
||||
namespace NewHorizons.Builder.Orbital
|
||||
{
|
||||
@ -66,6 +67,8 @@ namespace NewHorizons.Builder.Orbital
|
||||
orbitLine._fade = fade;
|
||||
orbitLine._lineWidth = 0.2f;
|
||||
|
||||
orbitLine._numVerts = (int)Mathf.Clamp(config.Orbit.SemiMajorAxis / 1000f, 128, 4096);
|
||||
|
||||
Main.Instance.ModHelper.Events.Unity.FireOnNextUpdate(orbitLine.InitializeLineRenderer);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user