1
Fork 0
mirror of https://github.com/Steffo99/cinnos.git synced 2024-11-22 16:14:19 +00:00
cinnos/obstacles/bullet.gd

18 lines
382 B
GDScript3
Raw Normal View History

2023-11-25 17:31:47 +00:00
extends Node3D
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func _on_body_entered(body):
if body is Player:
2023-11-25 17:49:48 +00:00
body.velocity += (body.global_position - global_position).normalized() * 8
2023-11-25 18:25:25 +00:00
queue_free()