ObjectSpawner.tscn 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. [gd_scene load_steps=5 format=3 uid="uid://b8dufelt0jqij"]
  2. [ext_resource type="Script" path="res://entities/ObjectSpawner.gd" id="1_qau2c"]
  3. [sub_resource type="BoxShape3D" id="BoxShape3D_5du0y"]
  4. size = Vector3(1.06096, 2.28663, 1.15449)
  5. [sub_resource type="BoxMesh" id="BoxMesh_7ltlw"]
  6. [sub_resource type="SphereMesh" id="SphereMesh_f8cha"]
  7. radius = 0.2
  8. height = 0.4
  9. [node name="ObjectSpawner" type="RayCast3D" groups=["leak_spawner"]]
  10. target_position = Vector3(0, -2, 0)
  11. collision_mask = 39
  12. hit_from_inside = true
  13. collide_with_areas = true
  14. script = ExtResource("1_qau2c")
  15. [node name="WallTester" type="Area3D" parent="."]
  16. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.35434, 0)
  17. collision_layer = 0
  18. [node name="CollisionShape3D" type="CollisionShape3D" parent="WallTester"]
  19. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.777154, 0)
  20. shape = SubResource("BoxShape3D_5du0y")
  21. [node name="MeshInstance3D" type="MeshInstance3D" parent="WallTester"]
  22. transform = Transform3D(0.01, 0, 0, 0, 0.01, 0, 0, 0, 0.01, 0, 0.32722, 0)
  23. visible = false
  24. mesh = SubResource("BoxMesh_7ltlw")
  25. [node name="MeshInstance3D" type="MeshInstance3D" parent="."]
  26. visible = false
  27. mesh = SubResource("SphereMesh_f8cha")
  28. [connection signal="body_entered" from="WallTester" to="." method="_on_WallTester_body_entered"]