Skip to main content

HeatPointTemperatureController

A class in Root.Township, Alta.Heat.

Server: clamps the temperature of the HeatPoint on the same object between a min and max.

Constructors​

MemberWhat it is
HeatPointTemperatureController()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private float maxTemperatureHighest temperature the heat point can reach. Default 100.
private float minTemperatureLowest temperature the heat point can reach. Default 0.

Methods​

2 private and internal methods
MemberWhat it is
private void ClampTemperature(ref float newtemperature)Temperature modifier that clamps new temperatures to the range, and replaces NaN with the midpoint.
private void Start()Server: hooks ClampTemperature into the heat point's TemperatureModifier.