feat: implemented avoidance and exposed speed settings to editor
This commit is contained in:
parent
fb9417a1d8
commit
2134fcae92
8 changed files with 61 additions and 14 deletions
|
|
@ -12,6 +12,7 @@ func _on_health_status_death() -> void:
|
|||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_ng1ul"]
|
||||
|
||||
[node name="EnemyWretched" type="EnemyWretched"]
|
||||
chase_speed = 2.0
|
||||
script = SubResource("GDScript_qot2n")
|
||||
|
||||
[node name="wretched" parent="." instance=ExtResource("1_qot2n")]
|
||||
|
|
@ -25,6 +26,9 @@ health = NodePath("../../../../../HealthStatus")
|
|||
[node name="Hitbox" parent="wretched/Character/Skeleton3D/HeadAttach" index="0" node_paths=PackedStringArray("health")]
|
||||
health = NodePath("../../../../../HealthStatus")
|
||||
|
||||
[node name="CollisionShape3D" parent="wretched/Character/Skeleton3D/BoneAttachment3D/DamageBox" index="0"]
|
||||
transform = Transform3D(1, -9.834766e-07, -2.454035e-06, 1.4305115e-06, 0.9999989, -8.145726e-06, 1.8983264e-06, 7.3344854e-06, 1, -0.20908, -5.9604645e-07, -4.7683716e-07)
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
||||
shape = SubResource("CapsuleShape3D_ng1ul")
|
||||
|
|
@ -35,6 +39,10 @@ unique_name_in_owner = true
|
|||
[node name="NavigationAgent3D" type="NavigationAgent3D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
path_desired_distance = 0.25
|
||||
avoidance_enabled = true
|
||||
neighbor_distance = 10.0
|
||||
time_horizon_agents = 0.7
|
||||
debug_enabled = true
|
||||
|
||||
[node name="PlayerDetector" type="PlayerDetector" parent="."]
|
||||
unique_name_in_owner = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue