door.tscn 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. [gd_scene load_steps=5 format=3 uid="uid://bcnpdinrepean"]
  2. [ext_resource type="Script" uid="uid://7v3r683kok5s" path="res://door/door.gd" id="1"]
  3. [ext_resource type="PackedScene" uid="uid://bivo3ncbyf02f" path="res://door/model/door.dae" id="2"]
  4. [ext_resource type="AudioStream" uid="uid://c2nls7s14emyc" path="res://door/open_close.wav" id="3"]
  5. [sub_resource type="BoxShape3D" id="1"]
  6. size = Vector3(8.85286, 6.2089, 11.0664)
  7. [node name="Door" type="Area3D"]
  8. script = ExtResource("1")
  9. [node name="DoorModel2" parent="." instance=ExtResource("2")]
  10. [node name="Skeleton3D" parent="DoorModel2/armature-doorsimple" index="0"]
  11. bones/1/position = Vector3(2.12019, -3.55271e-15, -1.02721)
  12. bones/2/position = Vector3(-2.12019, -3.55271e-15, -1.02721)
  13. [node name="doorsimple" parent="DoorModel2/armature-doorsimple/Skeleton3D" index="4"]
  14. skeleton = NodePath("..")
  15. [node name="AnimationPlayer" parent="DoorModel2" index="1"]
  16. autoplay = "doorsimple_closed"
  17. [node name="sound" type="AudioStreamPlayer3D" parent="."]
  18. stream = ExtResource("3")
  19. volume_db = 4.0
  20. unit_size = 7.0
  21. [node name="CollisionShape3D" type="CollisionShape3D" parent="."]
  22. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.55109, 0)
  23. shape = SubResource("1")
  24. [connection signal="body_entered" from="." to="." method="_on_door_body_entered"]
  25. [editable path="DoorModel2"]