Files
godot-interaction-system/Scenes/Main.tscn
T
2026-09-26 18:56:12 +03:00

154 lines
7.5 KiB
Plaintext

[gd_scene format=3 uid="uid://cwwsolupah1s3"]
[ext_resource type="PackedScene" uid="uid://cpog4xqme7wqj" path="res://Scenes/Player.tscn" id="1_pbw6q"]
[ext_resource type="PackedScene" uid="uid://hmpweoahtner" path="res://Scenes/Door.tscn" id="2_v1gob"]
[ext_resource type="PackedScene" uid="uid://dgre5brxnbps0" path="res://Scenes/MedievalDoor.tscn" id="3_jw32o"]
[ext_resource type="Script" uid="uid://cvg1f1wtahy0t" path="res://TestScripts/BlockMover.gd" id="4_50glp"]
[ext_resource type="PackedScene" uid="uid://cfheqck1xs2bs" path="res://Scenes/SimpleButton.tscn" id="5_vy5pj"]
[ext_resource type="PackedScene" uid="uid://b0fqh430x23kp" path="res://Scenes/SimpleLever.tscn" id="6_v1gob"]
[ext_resource type="PackedScene" uid="uid://cjqsmugd22cdh" path="res://Scenes/SimplePickupable.tscn" id="7_jw32o"]
[ext_resource type="PackedScene" uid="uid://cyn6cmirqiiya" path="res://Scenes/SpatialAudioPlayer.tscn" id="8_bmxlf"]
[ext_resource type="AudioStream" uid="uid://dkc00xclmtkbo" path="res://Scenes/Buy Something!.mp3" id="8_vy5pj"]
[ext_resource type="PackedScene" uid="uid://dknge5384ijcx" path="res://Scenes/SimpleKey.tscn" id="10_bmxlf"]
[ext_resource type="Script" uid="uid://b143brnl7gf4f" path="res://Scripts/Pickupable.gd" id="11_4kpch"]
[sub_resource type="BoxMesh" id="BoxMesh_1blfk"]
size = Vector3(50, 0.1, 50)
[sub_resource type="BoxShape3D" id="BoxShape3D_va8t4"]
size = Vector3(50, 0.1, 50)
[sub_resource type="Environment" id="Environment_1blfk"]
[sub_resource type="BoxMesh" id="BoxMesh_fos0i"]
[sub_resource type="SphereMesh" id="SphereMesh_1blfk"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_va8t4"]
albedo_color = Color(1, 0, 0, 1)
[sub_resource type="SphereShape3D" id="SphereShape3D_1blfk"]
[node name="Main" type="Node3D" unique_id=856459222]
[node name="StaticBody3D" type="StaticBody3D" parent="." unique_id=268564877]
collision_layer = 17
[node name="MeshInstance3D" type="MeshInstance3D" parent="StaticBody3D" unique_id=427946866]
layers = 17
mesh = SubResource("BoxMesh_1blfk")
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D" unique_id=2109163521]
shape = SubResource("BoxShape3D_va8t4")
[node name="Player" parent="." unique_id=1270645855 instance=ExtResource("1_pbw6q")]
[node name="WorldEnvironment" type="WorldEnvironment" parent="." unique_id=1880837933]
environment = SubResource("Environment_1blfk")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="." unique_id=2091686084]
transform = Transform3D(1, 0, 0, 0, 0.326888, 0.9450631, 0, -0.9450631, 0.326888, 0, 28.631863, 43.110176)
[node name="Door" parent="." unique_id=2086051002 instance=ExtResource("2_v1gob")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.5746174, 0.05000019, -7.507909)
snapAngleThreshold = 0.5
snapVelocityThreshold = 5.0
[node name="MedievalDoor" parent="." unique_id=1143822269 instance=ExtResource("3_jw32o")]
transform = Transform3D(0.9396926, 0, 0.34202012, 0, 1, 0, -0.34202012, 0, 0.9396926, 7.1977696, -0.02157104, -1.6521502)
[node name="Block" type="Node3D" parent="." unique_id=1216126902]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -8.362265, 2.041253, 0)
script = ExtResource("4_50glp")
[node name="MeshInstance3D" type="MeshInstance3D" parent="Block" unique_id=492958743]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.53257275, 0)
layers = 16385
mesh = SubResource("BoxMesh_fos0i")
[node name="SimplePressButton" parent="." unique_id=1810741910 instance=ExtResource("5_vy5pj")]
transform = Transform3D(0.5576158, 0, 0.83009917, 0, 1, 0, -0.83009917, 0, 0.5576158, -5.3408794, 1.7139747, -1.4288577)
[node name="SimpleHoldButton" parent="." unique_id=506197337 instance=ExtResource("5_vy5pj")]
transform = Transform3D(-0.10736252, 0, 0.99421996, 0, 1, 0, -0.99421996, 0, -0.10736252, -6.9503546, 1.7799978, 2.37957)
holdMode = true
[node name="SimpleLever" parent="." unique_id=2031608942 instance=ExtResource("6_v1gob")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.5557852, 1.6475947, -1.1587057)
angleOff = 45.0
[node name="SimplePickupable" parent="." unique_id=650555678 instance=ExtResource("7_jw32o")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5.011193, 10.622059)
[node name="SimplePickupable2" parent="." unique_id=2110903933 instance=ExtResource("7_jw32o")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.798231, 3.3262725, 10.622059)
[node name="SimplePickupable3" parent="." unique_id=2062232606 instance=ExtResource("7_jw32o")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.9931345, 3.3262725, 10.622059)
bodyMass = 50.0
[node name="CSGBox3D" type="CSGBox3D" parent="." unique_id=475794547]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 16.204157, 2.9997559, -20.283545)
layers = 17
size = Vector3(0.5214844, 6.9995117, 7.3129883)
[node name="CSGBox3D4" type="CSGBox3D" parent="." unique_id=963438638]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 16.204157, 2.9997559, -11.079284)
layers = 17
size = Vector3(0.5214844, 6.9995117, 7.3129883)
[node name="CSGBox3D5" type="CSGBox3D" parent="." unique_id=82836301]
transform = Transform3D(0.5832621, 0, -0.81228405, 0, 1, 0, 0.81228405, 0, 0.5832621, 13.224218, 2.9997559, -5.482582)
layers = 17
size = Vector3(0.5214844, 6.9995117, 7.3129883)
[node name="CSGBox3D2" type="CSGBox3D" parent="." unique_id=1489453991]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10.8968315, 2.9997559, -13.600012)
layers = 17
size = Vector3(0.5214844, 6.9995117, 20.680054)
[node name="CSGBox3D6" type="CSGBox3D" parent="." unique_id=166399348]
transform = Transform3D(-0.013710948, 0.999906, 0, -0.999906, -0.013710948, 0, 0, 0, 1, 13.479281, 6.294318, -13.600012)
layers = 17
size = Vector3(0.5214844, 6.9995117, 20.680054)
[node name="CSGBox3D3" type="CSGBox3D" parent="." unique_id=2101564635]
transform = Transform3D(0.03308868, 0, -0.9994524, 0, 1, 0, 0.9994524, 0, 0.03308868, 13.939653, 2.9997559, -23.496096)
layers = 17
size = Vector3(0.5214844, 6.9995117, 7.3129883)
[node name="SpatialAudioPlayer" parent="." unique_id=708850804 instance=ExtResource("8_bmxlf")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 13.358648, 2.9025939, -13.239832)
stream = ExtResource("8_vy5pj")
volume_db = -35.0
maxRaycastDistance = 10.0
[node name="SimplePickupable4" parent="." unique_id=1419866814 instance=ExtResource("10_bmxlf")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.0351448, 3.2192059)
[node name="SimplePickupable5" type="Node3D" parent="." unique_id=1116791131 node_paths=PackedStringArray("body")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.0500765, 1.2124488, 6.335041)
script = ExtResource("11_4kpch")
body = NodePath("")
bodyMass = 100.0
metadata/_custom_type_script = "uid://b143brnl7gf4f"
[node name="HeavyCube" type="RigidBody3D" parent="." unique_id=51671641 node_paths=PackedStringArray("body")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.310133, 6.0430264)
collision_layer = 9
collision_mask = 13
script = ExtResource("11_4kpch")
body = NodePath(".")
bodyMass = 100.0
[node name="MeshInstance3D" type="MeshInstance3D" parent="HeavyCube" unique_id=269584364]
mesh = SubResource("SphereMesh_1blfk")
surface_material_override/0 = SubResource("StandardMaterial3D_va8t4")
[node name="CollisionShape3D" type="CollisionShape3D" parent="HeavyCube" unique_id=843818180]
shape = SubResource("SphereShape3D_1blfk")
[connection signal="pressed" from="SimplePressButton" to="Block" method="toggleMove"]
[connection signal="held" from="SimpleHoldButton" to="Block" method="holdMove"]
[connection signal="released" from="SimpleHoldButton" to="Block" method="releaseMove"]