summaryrefslogtreecommitdiffstats
path: root/Trigger.tscn
diff options
context:
space:
mode:
Diffstat (limited to 'Trigger.tscn')
-rw-r--r--Trigger.tscn28
1 files changed, 28 insertions, 0 deletions
diff --git a/Trigger.tscn b/Trigger.tscn
new file mode 100644
index 0000000..0f5b6b9
--- /dev/null
+++ b/Trigger.tscn
@@ -0,0 +1,28 @@
+[gd_scene load_steps=3 format=2]
+
+[ext_resource path="res://Trigger.gd" type="Script" id=1]
+
+[sub_resource type="BoxShape" id=1]
+extents = Vector3( 1, 1, 0.3 )
+
+[node name="Trigger" type="Spatial"]
+script = ExtResource( 1 )
+
+[node name="Outside" type="Area" parent="."]
+transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.2 )
+collision_layer = 128
+collision_mask = 0
+
+[node name="CollisionShape" type="CollisionShape" parent="Outside"]
+shape = SubResource( 1 )
+
+[node name="Inside" type="Area" parent="."]
+transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.2 )
+collision_layer = 128
+collision_mask = 0
+
+[node name="CollisionShape" type="CollisionShape" parent="Inside"]
+shape = SubResource( 1 )
+
+[connection signal="body_exited" from="Outside" to="." method="_on_Outside_body_exited"]
+[connection signal="body_exited" from="Inside" to="." method="_on_Inside_body_exited"]