iso2/env/HeatSource.cs

A HeatSource component. Marks a position as warm when it is within 130 units of any HeatSource in the scene, and draws an orange gizmo sphere showing that radius.

public class HeatSource : Component {
	public static bool IsWarm(Scene scene, Vector3 position) {
		foreach (var heat in scene.GetAllComponents<HeatSource>()) {
			if (heat.WorldPosition.Distance(position) < 130)
				return true;
		}
		return false;
	}

	protected override void DrawGizmos() {
		Gizmo.Draw.Color = Color.Orange;
		Gizmo.Draw.LineSphere(0, 130);
		base.DrawGizmos();
	}
}