2021-09-22 18:04:03 +02:00
|
|
|
[gd_scene load_steps=5 format=2]
|
2021-09-17 15:04:05 +02:00
|
|
|
|
|
|
|
[ext_resource path="res://shaders/water/Ground.tscn" type="PackedScene" id=1]
|
|
|
|
[ext_resource path="res://shaders/water/Water.tscn" type="PackedScene" id=2]
|
2021-09-22 18:04:03 +02:00
|
|
|
[ext_resource path="res://shaders/water/Water.gd" type="Script" id=3]
|
|
|
|
|
|
|
|
[sub_resource type="BoxShape" id=1]
|
|
|
|
extents = Vector3( 128000, 5, 128000 )
|
2021-09-17 15:04:05 +02:00
|
|
|
|
|
|
|
[node name="Spatial" type="Spatial"]
|
|
|
|
|
|
|
|
[node name="Water" parent="." instance=ExtResource( 2 )]
|
|
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
|
2021-09-22 18:04:03 +02:00
|
|
|
script = ExtResource( 3 )
|
|
|
|
|
|
|
|
[node name="Area" type="Area" parent="Water"]
|
|
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -5, 0 )
|
|
|
|
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="Water/Area"]
|
|
|
|
shape = SubResource( 1 )
|
2021-09-17 15:04:05 +02:00
|
|
|
|
|
|
|
[node name="Ground" parent="." instance=ExtResource( 1 )]
|
|
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -6.02771, 0 )
|
|
|
|
visible = false
|
2021-09-22 18:04:03 +02:00
|
|
|
|
|
|
|
[connection signal="body_entered" from="Water/Area" to="Water" method="_on_Area_body_entered"]
|
|
|
|
[connection signal="body_exited" from="Water/Area" to="Water" method="_on_Area_body_exited"]
|