moved break function and gun feel tweaks

This commit is contained in:
Derek
2024-07-17 08:27:13 -05:00
parent f3b9787a5e
commit 7ca4bc7750
4 changed files with 14 additions and 8 deletions

View File

@@ -11,3 +11,11 @@ func _ready():
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func breaking():
var spawn_broken = broken_object.instantiate()
spawn_broken.position = global_position
spawn_broken.transform.basis = global_transform.basis
spawn_broken.rotation = rotation
get_tree().get_root().add_child(spawn_broken)
queue_free()