extends Node3D

@export var speed := 12.0
@export var unit_rotation := 0.15

@onready var animation: AnimationTree = $AnimationTree


func _on_flap_timer_timeout() -> void:
	animation["parameters/flap_trigger/request"] = AnimationNodeOneShot.ONE_SHOT_REQUEST_FIRE


func _process(delta: float) -> void:
	# Update position (fly in circle)

	global_position += global_basis.z * speed * delta
	global_rotation.y += unit_rotation * delta
