mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Missed a few
This commit is contained in:
parent
bbdc6e8b34
commit
af51d2de99
@ -207,8 +207,6 @@ namespace NewHorizons.Builder.General
|
|||||||
GameObject.Destroy(proxy.gameObject);
|
GameObject.Destroy(proxy.gameObject);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
HeavenlyBodyBuilder.Remove(ao);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void RemoveAllProxies()
|
public static void RemoveAllProxies()
|
||||||
|
|||||||
@ -32,5 +32,10 @@ namespace NewHorizons.Components.Orbital
|
|||||||
{
|
{
|
||||||
return Vector3.zero;
|
return Vector3.zero;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Vector3 GetPosition()
|
||||||
|
{
|
||||||
|
return Vector3.zero;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,7 +7,6 @@ using NewHorizons.Builder.Updater;
|
|||||||
using NewHorizons.Components;
|
using NewHorizons.Components;
|
||||||
using NewHorizons.External.VariableSize;
|
using NewHorizons.External.VariableSize;
|
||||||
using NewHorizons.Utility;
|
using NewHorizons.Utility;
|
||||||
using NewHorizons.Utility.CommonResources;
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
@ -278,8 +277,6 @@ namespace NewHorizons.Handlers
|
|||||||
|
|
||||||
if (ao.GetAstroObjectName() == AstroObject.Name.CustomString) AstroObjectLocator.RegisterCustomAstroObject(ao);
|
if (ao.GetAstroObjectName() == AstroObject.Name.CustomString) AstroObjectLocator.RegisterCustomAstroObject(ao);
|
||||||
|
|
||||||
HeavenlyBodyBuilder.Make(go, body.Config, sphereOfInfluence, gv, initialMotion);
|
|
||||||
|
|
||||||
return go;
|
return go;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -361,7 +358,7 @@ namespace NewHorizons.Handlers
|
|||||||
private static void UpdatePosition(GameObject go, NewHorizonsBody body, AstroObject primaryBody)
|
private static void UpdatePosition(GameObject go, NewHorizonsBody body, AstroObject primaryBody)
|
||||||
{
|
{
|
||||||
go.transform.parent = Locator.GetRootTransform();
|
go.transform.parent = Locator.GetRootTransform();
|
||||||
go.transform.position = CommonResourcesUtilities.GetPosition(body.Config.Orbit) + (primaryBody == null ? Vector3.zero : primaryBody.transform.position);
|
go.transform.position = body.Config.Orbit.GetOrbitalParameters().GetPosition() + (primaryBody == null ? Vector3.zero : primaryBody.transform.position);
|
||||||
|
|
||||||
if (go.transform.position.magnitude > Main.FurthestOrbit)
|
if (go.transform.position.magnitude > Main.FurthestOrbit)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user