28 lines
1.0 KiB
Plaintext
28 lines
1.0 KiB
Plaintext
[gd_scene load_steps=5 format=2]
|
|
|
|
[ext_resource path="res://shaders/water/Ground.tscn" type="PackedScene" id=1]
|
|
[ext_resource path="res://shaders/water/Water.tscn" type="PackedScene" id=2]
|
|
[ext_resource path="res://shaders/water/Water.gd" type="Script" id=3]
|
|
|
|
[sub_resource type="BoxShape" id=1]
|
|
extents = Vector3( 128000, 5, 128000 )
|
|
|
|
[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 )
|
|
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 )
|
|
|
|
[node name="Ground" parent="." instance=ExtResource( 1 )]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -6.02771, 0 )
|
|
visible = false
|
|
|
|
[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"]
|