20 lines
913 B
Plaintext
20 lines
913 B
Plaintext
URL: https://wiki.studiominus.nl/internalReference/TemperatureTargetRectangleBehaviour.html
|
|
Title: People Playground Modding - TemperatureTargetRectangleBehaviour
|
|
==================================================
|
|
|
|
public class TemperatureTargetRectangleBehaviour
|
|
Inherits MonoBehaviour
|
|
This behaviour only does stuff when the preference "AmbientTemperatureTransfer" is enabled.It changes the temperature of cells in the ambient temperature grid, that overlap a given rectangle, to a target value at a given rate.
|
|
Fields
|
|
public float TargetAmbientTemperature
|
|
Target temperature in Celsius
|
|
|
|
public Vector3Int Size
|
|
Global size of the effector rectangle
|
|
|
|
public Vector3Int Offset
|
|
Global offset of the effector rectangle. Its final position will be transform.position + Offset
|
|
|
|
public float TransferRateMultiplier
|
|
[Min(0)]
|
|
How fast the temperature of the grid moves towards the TargetAmbientTemperature. 1 by default. |