Files
fps_project_1/assets/rat_hole.tscn
2025-05-12 19:49:45 -05:00

35 lines
1.3 KiB
Plaintext

[gd_scene load_steps=6 format=3 uid="uid://6rhnl7vbvvr4"]
[ext_resource type="Script" uid="uid://cxlgj4v2lngyd" 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="Area3D" type="Area3D" parent="."]
collision_layer = 64
collision_mask = 64
[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")
[node name="spawnpos" type="Marker3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -1.258)
[connection signal="body_entered" from="Area3D" to="." method="_on_area_3d_body_entered"]