mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Set proxy atan
This commit is contained in:
parent
382a61e0f3
commit
1a0eb3d110
@ -95,11 +95,13 @@ namespace NewHorizons.Components
|
|||||||
if (_stellarRemnant.IsActivated())
|
if (_stellarRemnant.IsActivated())
|
||||||
{
|
{
|
||||||
_realObjectDiameter = _stellarRemnant._realObjectDiameter;
|
_realObjectDiameter = _stellarRemnant._realObjectDiameter;
|
||||||
|
_proxyAtan = Mathf.Atan(_stellarRemnant._realObjectDiameter / 42000f);
|
||||||
if (!_stellarRemnant.IsRenderingOn()) ToggleRendering(_outOfRange);
|
if (!_stellarRemnant.IsRenderingOn()) ToggleRendering(_outOfRange);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_realObjectDiameter = _baseRealObjectDiameter;
|
_realObjectDiameter = _baseRealObjectDiameter;
|
||||||
|
_proxyAtan = Mathf.Atan(_baseRealObjectDiameter / 42000f);
|
||||||
if (_stellarRemnant.IsRenderingOn()) ToggleRendering(_outOfRange);
|
if (_stellarRemnant.IsRenderingOn()) ToggleRendering(_outOfRange);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user