18 lines
430 B
GDScript
18 lines
430 B
GDScript
extends RigidBody3D
|
|
|
|
@onready var collision_shape = $CollisionShape3D
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready():
|
|
linear_velocity += transform.basis * Vector3(0, -20, 0)
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
func _process(delta):
|
|
pass
|
|
|
|
|
|
func _on_timer_timeout():
|
|
collision_shape.disabled = true
|
|
await get_tree().create_timer(1).timeout
|
|
queue_free()
|