mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Moved vessel hasPhysics field to a better location
This commit is contained in:
parent
831c0e7136
commit
b3d7836923
@ -191,6 +191,11 @@ namespace NewHorizons.External.Configs
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public string promptFact;
|
public string promptFact;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Whether the vessel should have physics enabled. This must be set to false for the vessel to stay attached to a parent body.
|
||||||
|
/// </summary>
|
||||||
|
[DefaultValue(true)] public bool hasPhysics = true;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The location that the vessel will warp to.
|
/// The location that the vessel will warp to.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -209,10 +214,6 @@ namespace NewHorizons.External.Configs
|
|||||||
[JsonObject]
|
[JsonObject]
|
||||||
public class VesselInfo : GeneralSolarSystemPropInfo
|
public class VesselInfo : GeneralSolarSystemPropInfo
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// Whether the vessel should have physics enabled. This must be set to false for the vessel to stay attached to a parent body.
|
|
||||||
/// </summary>
|
|
||||||
[DefaultValue(true)] public bool hasPhysics = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[JsonObject]
|
[JsonObject]
|
||||||
|
|||||||
@ -89,7 +89,7 @@ namespace NewHorizons.Handlers
|
|||||||
VesselObject = vesselObject;
|
VesselObject = vesselObject;
|
||||||
|
|
||||||
var vesselAO = vesselObject.AddComponent<EyeAstroObject>();
|
var vesselAO = vesselObject.AddComponent<EyeAstroObject>();
|
||||||
if (system.Config.Vessel?.vesselSpawn.hasPhysics ?? true)
|
if (system.Config.Vessel?.hasPhysics ?? true)
|
||||||
{
|
{
|
||||||
vesselAO._owRigidbody = vesselObject.GetComponent<OWRigidbody>();
|
vesselAO._owRigidbody = vesselObject.GetComponent<OWRigidbody>();
|
||||||
vesselObject.transform.parent = null;
|
vesselObject.transform.parent = null;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user