50 lines
1.9 KiB
Text
50 lines
1.9 KiB
Text
[gd_scene format=3 uid="uid://cwpnnh7v4b5q2"]
|
|
|
|
[ext_resource type="Script" uid="uid://vi18m3j6f6fa" path="res://scripts/enemies/dreamer.gd" id="1_pa2oe"]
|
|
[ext_resource type="PackedScene" uid="uid://cnii80nh1mxr2" path="res://scenes/living/dreamer_body.tscn" id="2_43va2"]
|
|
[ext_resource type="Texture2D" uid="uid://b6krbvbco0jt6" path="res://textures/shadow.png" id="3_n5vsr"]
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_trtic"]
|
|
size = Vector3(0.65, 1, 0.65)
|
|
|
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_yqjtg"]
|
|
radius = 0.15
|
|
height = 1.0
|
|
|
|
[node name="Dreamer" type="CharacterBody3D" unique_id=272925354]
|
|
collision_layer = 2
|
|
collision_mask = 2
|
|
script = ExtResource("1_pa2oe")
|
|
|
|
[node name="HitCollision" type="Area3D" parent="." unique_id=258957044]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1500001, 0)
|
|
collision_layer = 0
|
|
|
|
[node name="Shape" type="CollisionShape3D" parent="HitCollision" unique_id=681211050]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.5)
|
|
shape = SubResource("BoxShape3D_trtic")
|
|
|
|
[node name="DreamerBody" parent="." unique_id=723408850 instance=ExtResource("2_43va2")]
|
|
|
|
[node name="Shadow" type="Sprite3D" parent="." unique_id=66990281]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -2, 0)
|
|
modulate = Color(1, 1, 1, 0.5764706)
|
|
pixel_size = 0.03
|
|
axis = 1
|
|
texture_filter = 0
|
|
texture = ExtResource("3_n5vsr")
|
|
|
|
[node name="Collision" type="CollisionShape3D" parent="." unique_id=1709995346]
|
|
shape = SubResource("CapsuleShape3D_yqjtg")
|
|
|
|
[node name="Floorcast" type="RayCast3D" parent="." unique_id=1016475353]
|
|
target_position = Vector3(0, -16, 0)
|
|
|
|
[node name="Navigator" type="NavigationAgent3D" parent="." unique_id=919187616]
|
|
path_postprocessing = 2
|
|
avoidance_enabled = true
|
|
neighbor_distance = 1.5
|
|
max_speed = 2.5
|
|
debug_enabled = true
|
|
|
|
[connection signal="velocity_computed" from="Navigator" to="." method="_on_navigator_velocity_computed"]
|