Улучшен поиск путей

This commit is contained in:
Евгений Титаренко 2023-08-21 21:27:22 +03:00
parent 3e60215e11
commit 26cc09241f
8 changed files with 107 additions and 18 deletions

View file

@ -27,5 +27,10 @@ shape = SubResource("CircleShape2D_v67co")
position = Vector2(-2, 0)
shape = SubResource("CircleShape2D_smr3g")
[node name="NavigationAgent2D" type="NavigationAgent2D" parent="."]
avoidance_enabled = true
debug_use_custom = true
debug_path_custom_color = Color(0, 0, 1, 1)
[connection signal="body_entered" from="Area2D" to="." method="_OnEntered"]
[connection signal="body_exited" from="Area2D" to="." method="_OnExited"]