/
water.tscn
61 lines (47 loc) · 2.07 KB
/
water.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[gd_scene load_steps=9 format=2]
[ext_resource path="res://water.gd" type="Script" id=1]
[ext_resource path="res://assets/water_volume_material.tres" type="Material" id=2]
[ext_resource path="res://assets/open_box.obj" type="ArrayMesh" id=3]
[ext_resource path="res://assets/water_material.tres" type="Material" id=4]
[sub_resource type="QuadMesh" id=25]
size = Vector2( 10, 10 )
[sub_resource type="CubeMesh" id=32]
material = ExtResource( 2 )
size = Vector3( 10, 2, 2 )
[sub_resource type="BoxShape" id=27]
extents = Vector3( 10, 1, 20 )
[sub_resource type="BoxShape" id=30]
extents = Vector3( 5, 1.25, 5 )
[node name="water" type="Spatial"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -60.9619, 0, 0 )
script = ExtResource( 1 )
__meta__ = {
"_editor_description_": "Need to create new Mesh and Shapes every time you use it"
}
[node name="surface" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, 0 )
cast_shadow = 0
mesh = SubResource( 25 )
material/0 = ExtResource( 4 )
[node name="MeshInstance" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.0487, 0 )
visible = false
cast_shadow = 0
mesh = SubResource( 32 )
material/0 = null
[node name="MeshInstance2" type="MeshInstance" parent="."]
transform = Transform( 5, 0, 0, 0, 1.25, 0, 0, 0, 5, 0, -1.05, 0 )
cast_shadow = 0
mesh = ExtResource( 3 )
material/0 = ExtResource( 2 )
[node name="StaticBottom" type="StaticBody" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -4, 0 )
[node name="CollisionShape" type="CollisionShape" parent="StaticBottom"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -10, 0, 0 )
shape = SubResource( 27 )
[node name="WaterArea" type="Area" parent="."]
[node name="CollisionShape" type="CollisionShape" parent="WaterArea"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.05, 0 )
shape = SubResource( 30 )
[connection signal="body_entered" from="WaterArea" to="." method="_on_WaterArea_body_entered"]
[connection signal="body_exited" from="WaterArea" to="." method="_on_WaterArea_body_exited"]