Now About Social Code
summaryrefslogtreecommitdiff
path: root/prefabs/locker.tscn
diff options
context:
space:
mode:
authorLucas Fryzek <lucas.fryzek@fryzekconcepts.com>2024-09-29 14:28:57 +0100
committerLucas Fryzek <lucas.fryzek@fryzekconcepts.com>2024-09-29 14:28:57 +0100
commit0b14efee60765701f439b5174e56c0cf0639d20c (patch)
treeba319069e4f0a8d1377f34c5254246b65cff1765 /prefabs/locker.tscn
parent688a0418fd24c9ffff7dca43dd027ccb3784a373 (diff)
player,bsp_level_generator: Add lockers and interaction
Diffstat (limited to 'prefabs/locker.tscn')
-rw-r--r--prefabs/locker.tscn31
1 files changed, 31 insertions, 0 deletions
diff --git a/prefabs/locker.tscn b/prefabs/locker.tscn
new file mode 100644
index 0000000..ce4f5ff
--- /dev/null
+++ b/prefabs/locker.tscn
@@ -0,0 +1,31 @@
+[gd_scene load_steps=5 format=3 uid="uid://gq2idl5jgymn"]
+
+[ext_resource type="Script" path="res://scripts/locker.gd" id="1_t5tjw"]
+
+[sub_resource type="BoxMesh" id="BoxMesh_uasm5"]
+size = Vector3(1, 1.5, 1)
+
+[sub_resource type="BoxShape3D" id="BoxShape3D_a2nrx"]
+size = Vector3(2, 1.5, 2)
+
+[sub_resource type="BoxShape3D" id="BoxShape3D_lc36s"]
+size = Vector3(1, 1.5, 1)
+
+[node name="Locker" type="Area3D"]
+collision_layer = 8
+collision_mask = 8
+script = ExtResource("1_t5tjw")
+
+[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5, 0.75, 0.5)
+mesh = SubResource("BoxMesh_uasm5")
+
+[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5, 0.75, 0.5)
+shape = SubResource("BoxShape3D_a2nrx")
+
+[node name="StaticBody3D" type="StaticBody3D" parent="."]
+
+[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5, 0.75, 0.5)
+shape = SubResource("BoxShape3D_lc36s")