godot_rl_FPS / spell_ball.gd
edbeeching's picture
edbeeching HF staff
Upload . with huggingface_hub
8f07272
raw
history blame
290 Bytes
extends Node3D
var velocity = Vector3.ZERO
@export var speed = 10
func _physics_process(delta):
look_at(transform.origin + velocity.normalized(), Vector3.UP)
transform.origin += velocity * delta
func _on_hurtbox_area_entered(area):
print("Spellball hit")
queue_free()