-
-
Notifications
You must be signed in to change notification settings - Fork 207
/
Copy pathdoor.tscn
38 lines (26 loc) · 1.22 KB
/
door.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
[gd_scene load_steps=5 format=2]
[ext_resource path="res://door/door.gd" type="Script" id=1]
[ext_resource path="res://door/model/door.dae" type="PackedScene" id=2]
[ext_resource path="res://door/open_close.wav" type="AudioStream" id=3]
[sub_resource type="BoxShape" id=1]
extents = Vector3( 4.42643, 3.10445, 5.53322 )
[node name="Door" type="Area"]
script = ExtResource( 1 )
[node name="DoorModel" parent="." instance=ExtResource( 2 )]
[node name="shape0" parent="DoorModel/armature-doorsimple/Skeleton/doorleft" index="0"]
disabled = true
[node name="shape0" parent="DoorModel/armature-doorsimple/Skeleton/doorlower" index="0"]
disabled = true
[node name="shape0" parent="DoorModel/armature-doorsimple/Skeleton/doorright" index="0"]
disabled = true
[node name="shape0" parent="DoorModel/armature-doorsimple/Skeleton/doorupper" index="0"]
disabled = true
[node name="sound" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource( 3 )
unit_db = 4.0
unit_size = 7.0
[node name="CollisionShape" type="CollisionShape" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.55109, 0 )
shape = SubResource( 1 )
[connection signal="body_entered" from="." to="." method="_on_door_body_entered"]
[editable path="DoorModel"]