Randomize true anomaly

This commit is contained in:
Nick 2022-05-11 20:45:47 -04:00
parent a17477f746
commit d651dce2b0

View File

@ -89,6 +89,7 @@ namespace NewHorizons.Components
DetectorBuilder.SetDetector(primaryBody, _astroObject, _detector);
if (_alignment != null) _alignment.SetTargetBody(primaryBody.GetComponent<OWRigidbody>());
currentOrbit.TrueAnomaly = Random.Range(0, 360);
PlanetCreationHandler.UpdatePosition(gameObject, currentOrbit, primaryBody, _astroObject);
var primaryGravity = new Gravity(primaryBody.GetGravityVolume());