mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
sometimes there is no planet gravity
This commit is contained in:
parent
0599e4c988
commit
89f334f569
@ -348,8 +348,8 @@ namespace NewHorizons.Builder.Props
|
|||||||
else if (component is NomaiInterfaceOrb orb)
|
else if (component is NomaiInterfaceOrb orb)
|
||||||
{
|
{
|
||||||
// detect planet gravity
|
// detect planet gravity
|
||||||
// perhaps we should just detect no volumes. it seems to behave similarly in either case
|
var gravityVolume = planetGO.GetAttachedOWRigidbody().GetAttachedGravityVolume();
|
||||||
orb.GetComponent<ConstantForceDetector>()._detectableFields = new ForceVolume[] { planetGO.GetComponent<AstroObject>().GetGravityVolume() };
|
orb.GetComponent<ConstantForceDetector>()._detectableFields = gravityVolume ? new ForceVolume[] { gravityVolume } : new ForceVolume[] { };
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (component is VisionTorchItem torchItem)
|
else if (component is VisionTorchItem torchItem)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user