ander lichtkastje. sleutel in de la

This commit is contained in:
2023-02-02 22:32:36 +01:00
parent 504e9501fa
commit 46897a2742
11 changed files with 211 additions and 37 deletions
Binary file not shown.
+30
View File
@@ -0,0 +1,30 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://dnho3rpbb72mw"
path="res://.godot/imported/lichtkastje.glb-5aa8f6dc6924e9b2c43274db1707635b.scn"
[deps]
source_file="res://Objects/Meshes/lichtkastje.glb"
dest_files=["res://.godot/imported/lichtkastje.glb-5aa8f6dc6924e9b2c43274db1707635b.scn"]
[params]
nodes/root_type="Node3D"
nodes/root_name="Scene Root"
nodes/apply_root_scale=true
nodes/root_scale=1.0
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=false
import_script/path=""
_subresources={}
Binary file not shown.
+30
View File
@@ -0,0 +1,30 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://sf6qwnnx2uth"
path="res://.godot/imported/sleutel.glb-5f67593bf97ed4577477471d14167a4f.scn"
[deps]
source_file="res://Objects/Meshes/sleutel.glb"
dest_files=["res://.godot/imported/sleutel.glb-5f67593bf97ed4577477471d14167a4f.scn"]
[params]
nodes/root_type="Node3D"
nodes/root_name="Scene Root"
nodes/apply_root_scale=true
nodes/root_scale=1.0
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=false
import_script/path=""
_subresources={}
+61 -4
View File
File diff suppressed because one or more lines are too long
+37
View File
@@ -0,0 +1,37 @@
[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"]
+15
View File
@@ -0,0 +1,15 @@
[gd_scene load_steps=3 format=3 uid="uid://8pfiamxn57gg"]
[ext_resource type="PackedScene" uid="uid://sf6qwnnx2uth" path="res://Objects/Meshes/sleutel.glb" id="1_ykqoq"]
[sub_resource type="SphereShape3D" id="SphereShape3D_4brfa"]
radius = 0.1
[node name="sleutel" instance=ExtResource("1_ykqoq")]
[node name="StaticBody3D" type="StaticBody3D" parent="Sleutel" index="0"]
collision_layer = 2
collision_priority = 2.0
[node name="CollisionShape3D" type="CollisionShape3D" parent="Sleutel/StaticBody3D" index="0"]
shape = SubResource("SphereShape3D_4brfa")