mirror of
https://github.com/godotengine/tps-demo.git
synced 2026-01-06 02:10:26 +03:00
16 lines
346 B
GDScript
16 lines
346 B
GDScript
extends Node3D
|
|
|
|
|
|
@onready var light_rays: CPUParticles3D = $LightRays
|
|
@onready var camera: Camera3D = get_tree().get_root().get_camera_3d()
|
|
|
|
|
|
func _ready() -> void:
|
|
await $AnimationPlayer.animation_finished
|
|
queue_free()
|
|
|
|
|
|
func _process(_delta: float) -> void:
|
|
if is_instance_valid(camera):
|
|
light_rays.look_at(camera.global_transform.origin)
|