Skip to main content

LinearHeatArea

A class in Root.Township, Alta.Heat.

Shapes a HeatArea as a falloff along one direction: full temperature at the origin, none at length along decreaseDirection.

Constructors​

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

Fields​

3 private and internal fields
MemberWhat it is
private Vector3 decreaseDirectionLocal direction the heat falls off in.
private float lengthDistance over which heat falls to 0.
private Vector3 originLocal offset of the full-heat point.

Properties​

2 private and internal properties
MemberWhat it is
private Vector3 DecreaseDirection { get; }The falloff direction in world space.
private Vector3 Origin { get; }The full-heat point in world space.

Methods​

MemberWhat it is
protected override float GetTemperatureMultiplier(HeatPoint point)0 to 1 from how far the point is along the falloff direction.
1 private and internal method
MemberWhat it is
private void OnDrawGizmosSelected()Draws the start, end and line of the falloff.