cirnogodot/3D/Scenes/Props/Door_3D.tscn
2025-07-08 14:31:12 +02:00

34 lines
1.5 KiB
Text

[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"]
[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)
[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="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"]