88 lines
3.5 KiB
Text
88 lines
3.5 KiB
Text
[gd_scene load_steps=9 format=3 uid="uid://cwc5pk8n2n85j"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://tdwettjsx1o2" path="res://objects/effects/impact_flash_green_large.tscn" id="1_8gyt8"]
|
|
[ext_resource type="PackedScene" uid="uid://cbdm6154y7m5k" path="res://objects/effects/dustcloud.tscn" id="2_tel7y"]
|
|
[ext_resource type="PackedScene" uid="uid://ubl5uvtkrfso" path="res://objects/effects/object_piece.tscn" id="3_tel7y"]
|
|
|
|
[sub_resource type="GDScript" id="GDScript_v3jse"]
|
|
script/source = "extends Node3D
|
|
|
|
func _ready():
|
|
freeze_frame.call_deferred()
|
|
$ImpactFlash2.restart()
|
|
|
|
func freeze_frame():
|
|
Engine.time_scale = 0.00001
|
|
var col : Color = get_world_3d().environment.ambient_light_color
|
|
get_world_3d().environment.ambient_light_color = $DustCloud.process_material.color
|
|
await get_tree().create_timer(0.1, true, false, true).timeout
|
|
Engine.time_scale = 1.
|
|
get_world_3d().environment.ambient_light_color = col
|
|
$DustCloud.restart()
|
|
"
|
|
|
|
[sub_resource type="BoxMesh" id="BoxMesh_v3jse"]
|
|
size = Vector3(0.966, 0.2, 0.592)
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_v3jse"]
|
|
size = Vector3(0.959, 0.2, 0.576172)
|
|
|
|
[sub_resource type="BoxMesh" id="BoxMesh_tel7y"]
|
|
size = Vector3(0.2, 0.2, 0.2)
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_tel7y"]
|
|
size = Vector3(0.2, 0.2, 0.2)
|
|
|
|
[node name="DestroyedObject" type="Node3D"]
|
|
script = SubResource("GDScript_v3jse")
|
|
|
|
[node name="ImpactFlash2" parent="." instance=ExtResource("1_8gyt8")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.171534, 0)
|
|
|
|
[node name="DustCloud" parent="." instance=ExtResource("2_tel7y")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.312999, 0)
|
|
|
|
[node name="DestroyedObject" parent="." instance=ExtResource("3_tel7y")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0482381, 0.839077, 0.00899826)
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="DestroyedObject"]
|
|
mesh = SubResource("BoxMesh_v3jse")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="DestroyedObject"]
|
|
shape = SubResource("BoxShape3D_v3jse")
|
|
|
|
[node name="DestroyedObject2" parent="." instance=ExtResource("3_tel7y")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.951393, 0.616416, 0)
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="DestroyedObject2"]
|
|
mesh = SubResource("BoxMesh_tel7y")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="DestroyedObject2"]
|
|
shape = SubResource("BoxShape3D_tel7y")
|
|
|
|
[node name="DestroyedObject3" parent="." instance=ExtResource("3_tel7y")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.415327, 0.616416, 0.552001)
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="DestroyedObject3"]
|
|
mesh = SubResource("BoxMesh_tel7y")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="DestroyedObject3"]
|
|
shape = SubResource("BoxShape3D_tel7y")
|
|
|
|
[node name="DestroyedObject4" parent="." instance=ExtResource("3_tel7y")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.204972, 0.726766, -0.380615)
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="DestroyedObject4"]
|
|
mesh = SubResource("BoxMesh_tel7y")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="DestroyedObject4"]
|
|
shape = SubResource("BoxShape3D_tel7y")
|
|
|
|
[node name="DestroyedObject5" parent="." instance=ExtResource("3_tel7y")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.746109, 0.198163, -0.778075)
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="DestroyedObject5"]
|
|
mesh = SubResource("BoxMesh_tel7y")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="DestroyedObject5"]
|
|
shape = SubResource("BoxShape3D_tel7y")
|