[gd_scene load_steps=5 format=3 uid="uid://dulsm6psophsc"]

[ext_resource type="Script" path="res://entities/objects/puddle/components/PuddleSpawner.gd" id="1_yjd4u"]

[sub_resource type="BoxShape3D" id="BoxShape3D_5du0y"]
size = Vector3(1.06096, 2.28663, 1.15449)

[sub_resource type="BoxMesh" id="BoxMesh_7ltlw"]

[sub_resource type="SphereMesh" id="SphereMesh_f8cha"]
radius = 0.2
height = 0.4

[node name="PuddleSpawner" type="RayCast3D" groups=["puddle_spawner"]]
target_position = Vector3(0, -2, 0)
collision_mask = 39
hit_from_inside = true
collide_with_areas = true
script = ExtResource("1_yjd4u")

[node name="WallTester" type="Area3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.35434, 0)
collision_layer = 0

[node name="CollisionShape3D" type="CollisionShape3D" parent="WallTester"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.777154, 0)
shape = SubResource("BoxShape3D_5du0y")

[node name="MeshInstance3D" type="MeshInstance3D" parent="WallTester"]
transform = Transform3D(0.01, 0, 0, 0, 0.01, 0, 0, 0, 0.01, 0, 0.32722, 0)
visible = false
mesh = SubResource("BoxMesh_7ltlw")

[node name="SpawnerTester" type="Area3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.35434, 0)
collision_layer = 256
collision_mask = 256

[node name="CollisionShape3D" type="CollisionShape3D" parent="SpawnerTester"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.777154, 0)
shape = SubResource("BoxShape3D_5du0y")

[node name="MeshInstance3D" type="MeshInstance3D" parent="SpawnerTester"]
transform = Transform3D(0.01, 0, 0, 0, 0.01, 0, 0, 0, 0.01, 0, 0.32722, 0)
visible = false
mesh = SubResource("BoxMesh_7ltlw")

[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
mesh = SubResource("SphereMesh_f8cha")

[connection signal="body_entered" from="WallTester" to="." method="_on_WallTester_body_entered"]
[connection signal="area_shape_entered" from="SpawnerTester" to="." method="_on_spawner_tester_area_shape_entered"]
