break-utopia/project/objects/effects/object_piece.tscn

17 lines
499 B
Text

[gd_scene load_steps=2 format=3 uid="uid://ubl5uvtkrfso"]
[sub_resource type="GDScript" id="GDScript_8gyt8"]
script/source = "extends RigidBody3D
func _ready():
angular_velocity = Vector3(randf(), randf(), randf())
linear_velocity = position * 10
while sleeping == false:
await sleeping_state_changed
set_deferred(\"process_mode\", Node.PROCESS_MODE_DISABLED)
"
[node name="DestroyedObject" type="RigidBody3D"]
collision_layer = 4
collision_mask = 5
script = SubResource("GDScript_8gyt8")