2023-08-20 13:29:27 -06:00
|
|
|
[gd_scene load_steps=5 format=3 uid="uid://c4s6y758n77lw"]
|
2023-08-19 20:42:02 -06:00
|
|
|
|
|
|
|
[ext_resource type="PackedScene" uid="uid://dmtmign72vtlm" path="res://slime_shared.tscn" id="1_qm1jp"]
|
|
|
|
[ext_resource type="Script" path="res://Villager.gd" id="2_uf6mh"]
|
|
|
|
|
2023-08-20 13:29:27 -06:00
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_k5rhc"]
|
|
|
|
radius = 0.05
|
|
|
|
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_wx128"]
|
|
|
|
radius = 0.1
|
2023-08-20 01:03:30 -06:00
|
|
|
|
2023-08-19 20:42:02 -06:00
|
|
|
[node name="villager" instance=ExtResource("1_qm1jp")]
|
|
|
|
script = ExtResource("2_uf6mh")
|
2023-08-20 13:24:04 -06:00
|
|
|
|
2023-08-20 13:29:27 -06:00
|
|
|
[node name="CollisionDetection" type="Area3D" parent="." index="2"]
|
|
|
|
|
|
|
|
[node name="slime_collision" type="CollisionShape3D" parent="CollisionDetection" index="0"]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0408143, 0)
|
|
|
|
shape = SubResource("SphereShape3D_k5rhc")
|
|
|
|
|
|
|
|
[node name="Area3D" type="Area3D" parent="." index="3"]
|
2023-08-20 13:24:04 -06:00
|
|
|
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D" index="0"]
|
2023-08-20 13:29:27 -06:00
|
|
|
shape = SubResource("SphereShape3D_wx128")
|
2023-08-20 13:24:04 -06:00
|
|
|
|
2023-08-20 13:29:27 -06:00
|
|
|
[connection signal="body_entered" from="CollisionDetection" to="." method="_on_collision_detection_body_entered"]
|
2023-08-20 13:24:04 -06:00
|
|
|
[connection signal="body_entered" from="Area3D" to="." method="_on_area_3d_body_entered"]
|