mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
stopped orbit line from generating at the eye (#1035)
the eye of the universe does not have a map viewer instance in its scene, so why even generate orbit lines to begin with? this also solved a graphical glitch containing a missing texture seen in new horizons examples.
This commit is contained in:
commit
5c9dd07f21
@ -513,9 +513,12 @@ namespace NewHorizons.Handlers
|
|||||||
var initialMotion = InitialMotionBuilder.Make(go, primaryBody, ao, owRigidBody, body.Config.Orbit);
|
var initialMotion = InitialMotionBuilder.Make(go, primaryBody, ao, owRigidBody, body.Config.Orbit);
|
||||||
|
|
||||||
if (body.Config.Orbit.showOrbitLine && !body.Config.Orbit.isStatic)
|
if (body.Config.Orbit.showOrbitLine && !body.Config.Orbit.isStatic)
|
||||||
|
{
|
||||||
|
if (LoadManager.GetCurrentScene() != OWScene.EyeOfTheUniverse)
|
||||||
{
|
{
|
||||||
OrbitlineBuilder.Make(body.Object, body.Config.Orbit.isMoon, body.Config);
|
OrbitlineBuilder.Make(body.Object, body.Config.Orbit.isMoon, body.Config);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
DetectorBuilder.Make(go, owRigidBody, primaryBody, ao, body.Config);
|
DetectorBuilder.Make(go, owRigidBody, primaryBody, ao, body.Config);
|
||||||
|
|
||||||
@ -842,9 +845,12 @@ namespace NewHorizons.Handlers
|
|||||||
|
|
||||||
var isMoon = newAO.GetAstroObjectType() is AstroObject.Type.Moon or AstroObject.Type.Satellite or AstroObject.Type.SpaceStation;
|
var isMoon = newAO.GetAstroObjectType() is AstroObject.Type.Moon or AstroObject.Type.Satellite or AstroObject.Type.SpaceStation;
|
||||||
if (body.Config.Orbit.showOrbitLine)
|
if (body.Config.Orbit.showOrbitLine)
|
||||||
|
{
|
||||||
|
if (LoadManager.GetCurrentScene() != OWScene.EyeOfTheUniverse)
|
||||||
{
|
{
|
||||||
OrbitlineBuilder.Make(go, isMoon, body.Config);
|
OrbitlineBuilder.Make(go, isMoon, body.Config);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
DetectorBuilder.SetDetector(primary, newAO, go.GetComponentInChildren<ConstantForceDetector>());
|
DetectorBuilder.SetDetector(primary, newAO, go.GetComponentInChildren<ConstantForceDetector>());
|
||||||
|
|
||||||
|
|||||||
@ -90,6 +90,9 @@ This makes the second planet a quantum state of the first, anything you specify
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Keep in mind that if you redefine `Orbit` on all configs (even with the same parameters each time), **the planet will change its position within its orbit when changing states.**
|
||||||
|
*If you want your Quantum Planet's position to* ***NOT*** *change,* ***only define `Orbit` on the main state***.
|
||||||
|
|
||||||
## Barycenters (Focal Points)
|
## Barycenters (Focal Points)
|
||||||
|
|
||||||
To create a binary system of planets (like ash twin and ember twin), first create a config with `FocalPoint` set
|
To create a binary system of planets (like ash twin and ember twin), first create a config with `FocalPoint` set
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user