aboutsummaryrefslogtreecommitdiff
path: root/client/map/environment.gd
blob: abe8ed6c5c8fb5a44209e8924efc328efffc94ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
extends Node3D

func update(active: Array):
	
	$Wind.emitting = active.has("wind")
	var a: ParticleProcessMaterial = $Wind.process_material
	# TODO ramp
	a.initial_velocity_max = 15. if active.has("wind") else 0.
	a.initial_velocity_min = 15. if active.has("wind") else 0.

	# TODO ramp
	$Rain.emitting = active.has("rain")
	$Rain.amount = 500 if active.has("rain") else 0