ladder and rats looking pretty good. still need to fix rat holes

This commit is contained in:
Derek
2024-07-28 15:36:04 -05:00
parent 5a41a22160
commit 98f5858b88
12 changed files with 355 additions and 34 deletions

View File

@@ -23,5 +23,9 @@ func breaking(current_velocity):
spawn_broken.position = global_position
spawn_broken.transform.basis = global_transform.basis
spawn_broken.rotation = rotation
var pieces = spawn_broken.get_children()
for piece in pieces:
if piece is RigidBody3D:
piece.linear_velocity += current_velocity
get_tree().get_root().add_child(spawn_broken)
queue_free()