mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Fix gravity not being set up before Start
This commit is contained in:
parent
51a5272ffb
commit
e67c93122b
@ -38,8 +38,8 @@ namespace NewHorizons.Components.Orbital
|
||||
}
|
||||
else
|
||||
{
|
||||
Mass = gv._gravitationalMass;
|
||||
Power = gv._falloffType == GravityVolume.FalloffType.linear ? 1 : 2;
|
||||
Mass = gv._surfaceAcceleration * Mathf.Pow(gv._upperSurfaceRadius, Power) / GravityVolume.GRAVITATIONAL_CONSTANT;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user