initial commit
This commit is contained in:
17
scripts/mag1.gd
Normal file
17
scripts/mag1.gd
Normal file
@@ -0,0 +1,17 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user