mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-19 08:53:46 +00:00
Door player detection
This commit is contained in:
parent
87438dff2b
commit
f7334c056b
14 changed files with 1631 additions and 1361 deletions
|
|
@ -1,22 +1,34 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://bubtvv3pa06py"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://bubtvv3pa06py"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://b12y0mtx6ibo8" path="res://3D/BlockbenchModels/Door/Door.gltf" id="1_7axon"]
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_y1ovr"]
|
||||
[ext_resource type="Script" uid="uid://b5yceosypf3mu" path="res://Scripts/Actors/3D/Door3D.cs" id="1_y1ovr"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_7axon"]
|
||||
size = Vector3(1.99927, 2.00482, 0.140869)
|
||||
|
||||
[node name="Door3d" type="AnimatableBody3D" groups=["Solid"]]
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_evf52"]
|
||||
size = Vector3(0.98187256, 2.0062256, 0.44836426)
|
||||
|
||||
[node name="Door3d" type="AnimatableBody3D" node_paths=PackedStringArray("AnimationPlayer") groups=["Solid"]]
|
||||
collision_layer = 16
|
||||
script = ExtResource("1_y1ovr")
|
||||
AnimationPlayer = NodePath("blockbench_export/AnimationPlayer")
|
||||
|
||||
[node name="blockbench_export" parent="." instance=ExtResource("1_7axon")]
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_y1ovr")
|
||||
}
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.00500488, 0.00234985, -0.00524902)
|
||||
shape = SubResource("BoxShape3D_7axon")
|
||||
|
||||
[node name="PlayerDetector" type="Area3D" parent="."]
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="PlayerDetector"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.035308838, 0.0099487305, -0.035583496)
|
||||
shape = SubResource("BoxShape3D_evf52")
|
||||
|
||||
[connection signal="area_entered" from="PlayerDetector" to="." method="OnPlayerDetected"]
|
||||
[connection signal="area_exited" from="PlayerDetector" to="." method="OnPlayerUndetected"]
|
||||
|
||||
[editable path="blockbench_export"]
|
||||
|
|
|
|||
|
|
@ -1,17 +1,19 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://du6hlcoq0iip4"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://du6hlcoq0iip4"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://qxh76ahgexqa" path="res://Scripts/Interactables/Switch3D.cs" id="1_papkq"]
|
||||
[ext_resource type="Texture2D" uid="uid://d24g1qb40t72l" path="res://Sprites/Button_Small.png" id="2_ldivl"]
|
||||
[ext_resource type="AudioStream" uid="uid://bjvklk7qmlivd" path="res://SFX/288963__littlerobotsoundfactory__click_electronic_14.wav" id="3_ldivl"]
|
||||
[ext_resource type="AudioStream" uid="uid://myr6n2c1u503" path="res://SFX/581602__samsterbirdies__beep-error.mp3" id="4_cjle7"]
|
||||
[ext_resource type="PackedScene" uid="uid://br2jnsx6v707w" path="res://3D/BlockbenchModels/ControlPad/Control_Pad.gltf" id="4_dfw4f"]
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_itd0i"]
|
||||
radius = 0.868968
|
||||
|
||||
[node name="ControlPad" type="Area3D" groups=["Interactable"]]
|
||||
[node name="ControlPad" type="Area3D" node_paths=PackedStringArray("Targets") groups=["Interactable"]]
|
||||
collision_layer = 32
|
||||
collision_mask = 0
|
||||
script = ExtResource("1_papkq")
|
||||
Targets = []
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="Sprite3D" type="Sprite3D" parent="."]
|
||||
|
|
@ -26,10 +28,15 @@ hframes = 4
|
|||
shape = SubResource("SphereShape3D_itd0i")
|
||||
|
||||
[node name="ActivationSound" type="AudioStreamPlayer3D" parent="."]
|
||||
visible = false
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.15351868)
|
||||
stream = ExtResource("3_ldivl")
|
||||
bus = &"Effects"
|
||||
|
||||
[node name="DenySound" type="AudioStreamPlayer3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.15351868)
|
||||
stream = ExtResource("4_cjle7")
|
||||
bus = &"Effects"
|
||||
|
||||
[node name="blockbench_export" parent="." instance=ExtResource("4_dfw4f")]
|
||||
|
||||
[editable path="blockbench_export"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue