regression-test-project/Rendering/Lights3D/DirectionalLight.gd

11 lines
186 B
GDScript3
Raw Normal View History

2020-11-06 16:57:49 +01:00
extends DirectionalLight3D
var speed = 1.2
var curr = 0
func _process(delta):
curr += delta * speed
rotation = Vector3(sin(curr) * speed, cos(curr) * speed, sin(8 * curr) * speed)