freeftf/entities/fuse_box.tscn
2025-07-31 13:57:50 +02:00

44 lines
1.6 KiB
Text

[gd_scene load_steps=6 format=3 uid="uid://d1d30fwvkx66s"]
[ext_resource type="Script" uid="uid://cclwbdyr23has" path="res://entities/fuse_box.gd" id="1_x8jfh"]
[sub_resource type="BoxMesh" id="BoxMesh_dwu7d"]
size = Vector3(0.2, 1, 1)
[sub_resource type="BoxShape3D" id="BoxShape3D_g83f7"]
size = Vector3(0.2, 1, 1)
[sub_resource type="BoxShape3D" id="BoxShape3D_uyarn"]
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_o4y3h"]
properties/0/path = NodePath("Hinge:rotation:y")
properties/0/spawn = true
properties/0/replication_mode = 1
[node name="FuseBox" type="StaticBody3D"]
script = ExtResource("1_x8jfh")
[node name="FuseBoxMesh" type="MeshInstance3D" parent="."]
mesh = SubResource("BoxMesh_dwu7d")
[node name="Hinge" type="Node3D" parent="."]
transform = Transform3D(-0.707107, 0, -0.707107, 0, 1, 0, 0.707107, 0, -0.707107, 0.1, 0, 0.5)
[node name="DoorMesh" type="MeshInstance3D" parent="Hinge"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.1, 0, -0.5)
mesh = SubResource("BoxMesh_dwu7d")
skeleton = NodePath("../../FuseBoxMesh")
[node name="Collision" type="CollisionShape3D" parent="."]
shape = SubResource("BoxShape3D_g83f7")
[node name="FixingArea" type="Area3D" parent="."]
[node name="Shape" type="CollisionShape3D" parent="FixingArea"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.6, 0, 0)
shape = SubResource("BoxShape3D_uyarn")
[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."]
replication_config = SubResource("SceneReplicationConfig_o4y3h")
[connection signal="body_entered" from="FixingArea" to="." method="_on_fixing_started"]