79 lines
3.3 KiB
Plaintext
79 lines
3.3 KiB
Plaintext
[gd_scene format=3 uid="uid://hmpweoahtner"]
|
|
|
|
[ext_resource type="Script" uid="uid://cyw8ng7alo12e" path="res://Scripts/Door.gd" id="1_1vvux"]
|
|
|
|
[sub_resource type="BoxMesh" id="BoxMesh_va8t4"]
|
|
size = Vector3(0.2, 3, 0.2)
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_f1iwm"]
|
|
albedo_color = Color(1, 0, 0, 1)
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_476pq"]
|
|
size = Vector3(0.2, 3, 0.2)
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_va8t4"]
|
|
size = Vector3(1.5, 3, 0.1)
|
|
|
|
[sub_resource type="BoxMesh" id="BoxMesh_1blfk"]
|
|
size = Vector3(1.5, 3, 0.1)
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_4dq1k"]
|
|
albedo_color = Color(0.18070471, 0.12822011, 6.016344e-08, 1)
|
|
|
|
[node name="Door" type="Node3D" unique_id=2086051002 node_paths=PackedStringArray("body", "hinge")]
|
|
script = ExtResource("1_1vvux")
|
|
body = NodePath("DoorBody")
|
|
hinge = NodePath("HingeJoint3D")
|
|
hingeAngularLowerLimit = 0.0
|
|
snapVelocityThreshold = 2.0
|
|
|
|
[node name="Frame" type="StaticBody3D" parent="." unique_id=1425869315]
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Frame" unique_id=402301167]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.35, 1.5, 0)
|
|
mesh = SubResource("BoxMesh_va8t4")
|
|
surface_material_override/0 = SubResource("StandardMaterial3D_f1iwm")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Frame" unique_id=1028358895]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.35, 1.5, 0)
|
|
shape = SubResource("BoxShape3D_476pq")
|
|
|
|
[node name="MeshInstance3D2" type="MeshInstance3D" parent="Frame" unique_id=1629149026]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.35, 1.5, 0)
|
|
mesh = SubResource("BoxMesh_va8t4")
|
|
surface_material_override/0 = SubResource("StandardMaterial3D_f1iwm")
|
|
|
|
[node name="CollisionShape3D2" type="CollisionShape3D" parent="Frame" unique_id=1273426324]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.35, 1.5, 0)
|
|
shape = SubResource("BoxShape3D_476pq")
|
|
|
|
[node name="MeshInstance3D3" type="MeshInstance3D" parent="Frame" unique_id=800996442]
|
|
transform = Transform3D(-4.371139e-08, -0.635, 0, 1, -2.7756732e-08, 0, 0, 0, 1, 0.5, 3.1, 0)
|
|
mesh = SubResource("BoxMesh_va8t4")
|
|
surface_material_override/0 = SubResource("StandardMaterial3D_f1iwm")
|
|
|
|
[node name="CollisionShape3D3" type="CollisionShape3D" parent="Frame" unique_id=1785799541]
|
|
transform = Transform3D(-4.371139e-08, -0.635, 0, 1, -2.7756732e-08, 0, 0, 0, 1, 0.5, 3.1, 0)
|
|
shape = SubResource("BoxShape3D_476pq")
|
|
|
|
[node name="DoorBody" type="RigidBody3D" parent="." unique_id=1982348670]
|
|
axis_lock_angular_x = true
|
|
axis_lock_angular_z = true
|
|
mass = 10.0
|
|
angular_damp = 5.0
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="DoorBody" unique_id=2068198605]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5, 1.5, 0)
|
|
shape = SubResource("BoxShape3D_va8t4")
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="DoorBody" unique_id=502246902]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5, 1.5, 0)
|
|
mesh = SubResource("BoxMesh_1blfk")
|
|
surface_material_override/0 = SubResource("StandardMaterial3D_4dq1k")
|
|
|
|
[node name="HingeJoint3D" type="HingeJoint3D" parent="." unique_id=1587300072]
|
|
transform = Transform3D(1, 0, 0, 0, -4.371139e-08, -1, 0, 1, -4.371139e-08, -0.25, 1.5, 0)
|
|
node_a = NodePath("../Frame")
|
|
node_b = NodePath("../DoorBody")
|
|
angular_limit/enable = true
|