38 lines
2.0 KiB
Plaintext
38 lines
2.0 KiB
Plaintext
[gd_scene load_steps=6 format=3 uid="uid://b5rve73suh7fc"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://dnho3rpbb72mw" path="res://Objects/Meshes/lichtkastje.glb" id="1_je302"]
|
|
[ext_resource type="Script" path="res://Scripts/lichtkastje.gd" id="2_m7o1t"]
|
|
|
|
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_jddrt"]
|
|
points = PackedVector3Array(-1.01587, -1.01587, -1.01587, 0.999969, 1, 1, 0.999969, 1, -1, -1.01587, 1.01587, 1.01587, 0.999969, -1, 1, -1.01587, 1.01587, -1.01587, -1.01587, -1.01587, 1.01587, 0.999969, -1, -1)
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_smcqf"]
|
|
albedo_color = Color(0, 0, 0, 1)
|
|
emission_enabled = true
|
|
emission = Color(0, 0, 0.419608, 1)
|
|
|
|
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_chvxh"]
|
|
points = PackedVector3Array(0.980636, 2.74175, 0.2541, -1, -0.0139211, -1, -1, -0.0139211, 0.996143, 1, -0.0192875, 1, 0.996143, -0.0139211, -1, -0.968964, 2.72014, -0.2541, -0.998978, 1.7215, 0.995121, 0.995121, 1.7215, -0.998978, -0.998978, 1.7215, -0.998978, 0.995121, 1.7215, 0.995121, -0.984493, 2.74175, 0.2541, 0.965107, 2.72014, -0.2541)
|
|
|
|
[node name="lichtkastje" instance=ExtResource("1_je302")]
|
|
script = ExtResource("2_m7o1t")
|
|
|
|
[node name="Lock" type="StaticBody3D" parent="Lock" index="0"]
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Lock/Lock" index="0"]
|
|
shape = SubResource("ConvexPolygonShape3D_jddrt")
|
|
|
|
[node name="Lever" parent="." index="4"]
|
|
transform = Transform3D(0.0287741, 0, 0, 0, 0.208095, 0, 0, 0, 0.208095, -0.182957, 0, 0)
|
|
surface_material_override/0 = SubResource("StandardMaterial3D_smcqf")
|
|
|
|
[node name="Lever" type="StaticBody3D" parent="Lever" index="0"]
|
|
collision_layer = 2
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Lever/Lever" index="0"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
|
|
shape = SubResource("ConvexPolygonShape3D_chvxh")
|
|
|
|
[connection signal="input_event" from="Lock/Lock" to="." method="_on_lock_input_event"]
|
|
[connection signal="input_event" from="Lever/Lever" to="." method="_on_lever_input_event"]
|