Example #1
0
        private void UpdateHeatExchangedThrustDivisor()
        {
            if (myAttachedReactor == null)
            {
                return;
            }

            if (myAttachedReactor.GetRadius() <= 0 || radius <= 0)
            {
                heat_exchanger_thrust_divisor = 1;
                return;
            }

            heat_exchanger_thrust_divisor = radius > myAttachedReactor.GetRadius()
                ? myAttachedReactor.GetRadius() * myAttachedReactor.GetRadius() / radius / radius
                : radius * radius / myAttachedReactor.GetRadius() / myAttachedReactor.GetRadius();
        }
Example #2
0
        private void UpdateHeatExchangedThrustDivisor()
        {
            if (attachedThermalSource == null)
            {
                return;
            }

            if (attachedThermalSource.GetRadius() <= 0 || radius <= 0)
            {
                heat_exchanger_thrust_divisor = 1;
                return;
            }

            heat_exchanger_thrust_divisor = radius > attachedThermalSource.GetRadius()
                ? attachedThermalSource.GetRadius() * attachedThermalSource.GetRadius() / radius / radius
                : radius * radius / attachedThermalSource.GetRadius() / attachedThermalSource.GetRadius();
        }