[gd_scene load_steps=6 format=3 uid="uid://6rhnl7vbvvr4"] [ext_resource type="Script" path="res://scripts/rat_hole.gd" id="1_c22gk"] [ext_resource type="PackedScene" uid="uid://0xs247hfvkml" path="res://assets/rat.tscn" id="2_dih3n"] [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_iujlh"] albedo_color = Color(0.252116, 0.073109, 0.0541527, 1) [sub_resource type="BoxMesh" id="BoxMesh_7h30q"] material = SubResource("StandardMaterial3D_iujlh") size = Vector3(0.7, 0.7, 0.1) [sub_resource type="BoxShape3D" id="BoxShape3D_elkdi"] size = Vector3(0.722656, 0.713135, 0.605469) [node name="RatHole" type="Node3D"] script = ExtResource("1_c22gk") rat = ExtResource("2_dih3n") [node name="MeshInstance3D" type="MeshInstance3D" parent="."] mesh = SubResource("BoxMesh_7h30q") [node name="RayCast3D" type="RayCast3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.356676) target_position = Vector3(0, 0, -1) [node name="Area3D" type="Area3D" parent="."] collision_layer = 2 collision_mask = 2 [node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0113525, -0.302734) shape = SubResource("BoxShape3D_elkdi") [connection signal="body_entered" from="Area3D" to="." method="_on_area_3d_body_entered"]