navmesh_chhunks_demo_2d.tscn 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. [gd_scene load_steps=2 format=3 uid="uid://svfku2i5n033"]
  2. [ext_resource type="Script" path="res://navmesh_chhunks_demo_2d.gd" id="1_d68tl"]
  3. [node name="NavMeshChunksDemo2D" type="Node2D"]
  4. script = ExtResource("1_d68tl")
  5. [node name="Camera2D" type="Camera2D" parent="."]
  6. position = Vector2(960, 540)
  7. zoom = Vector2(0.8, 0.8)
  8. [node name="ParseRootNode" type="Node2D" parent="."]
  9. unique_name_in_owner = true
  10. [node name="StaticBody2D" type="StaticBody2D" parent="ParseRootNode"]
  11. [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="ParseRootNode/StaticBody2D"]
  12. polygon = PackedVector2Array(244, 147, 636, 155, 376, 391, 460, 655, 804, 795, 756, 971, 484, 839, 308, 963, 132, 811, 128, 559)
  13. [node name="CollisionPolygon2D2" type="CollisionPolygon2D" parent="ParseRootNode/StaticBody2D"]
  14. polygon = PackedVector2Array(1312, 207, 1596, 91, 1832, 175, 1739, 926, 1562, 796, 1508, 935, 1184, 811, 1324, 533, 1499, 599, 1684, 511, 1596, 322)
  15. [node name="CollisionPolygon2D3" type="CollisionPolygon2D" parent="ParseRootNode/StaticBody2D"]
  16. polygon = PackedVector2Array(661, 339, 943, 397, 1112, 178, 1172, 443, 960, 639, 700, 579)
  17. [node name="DebugPaths" type="Node2D" parent="."]
  18. unique_name_in_owner = true
  19. [node name="PathDebugCorridorFunnel" type="NavigationAgent2D" parent="DebugPaths"]
  20. unique_name_in_owner = true
  21. debug_enabled = true
  22. debug_use_custom = true
  23. debug_path_custom_color = Color(1, 0, 1, 1)
  24. debug_path_custom_point_size = 10.0
  25. debug_path_custom_line_width = 4.0
  26. [node name="PathDebugEdgeCentered" type="NavigationAgent2D" parent="DebugPaths"]
  27. unique_name_in_owner = true
  28. path_postprocessing = 1
  29. debug_enabled = true
  30. debug_use_custom = true
  31. debug_path_custom_color = Color(1, 1, 0, 1)
  32. debug_path_custom_point_size = 10.0
  33. debug_path_custom_line_width = 4.0
  34. [node name="ChunksContainer" type="Node2D" parent="."]
  35. unique_name_in_owner = true
  36. [node name="CanvasLayer" type="CanvasLayer" parent="."]
  37. [node name="PanelContainer" type="PanelContainer" parent="CanvasLayer"]
  38. offset_right = 40.0
  39. offset_bottom = 40.0
  40. [node name="MarginContainer" type="MarginContainer" parent="CanvasLayer/PanelContainer"]
  41. layout_mode = 2
  42. theme_override_constants/margin_left = 15
  43. theme_override_constants/margin_top = 15
  44. theme_override_constants/margin_right = 15
  45. theme_override_constants/margin_bottom = 15
  46. [node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/PanelContainer/MarginContainer"]
  47. layout_mode = 2
  48. [node name="Label" type="Label" parent="CanvasLayer/PanelContainer/MarginContainer/VBoxContainer"]
  49. layout_mode = 2
  50. text = "Use cursor button to set path start position"
  51. [node name="HBoxContainer" type="HBoxContainer" parent="CanvasLayer/PanelContainer/MarginContainer/VBoxContainer"]
  52. layout_mode = 2
  53. theme_override_constants/separation = 10
  54. [node name="ColorRect" type="ColorRect" parent="CanvasLayer/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
  55. custom_minimum_size = Vector2(128, 8)
  56. layout_mode = 2
  57. size_flags_vertical = 4
  58. color = Color(1, 0, 1, 1)
  59. [node name="Label" type="Label" parent="CanvasLayer/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
  60. layout_mode = 2
  61. text = "Path corridor-funnel"
  62. horizontal_alignment = 1
  63. vertical_alignment = 1
  64. [node name="HBoxContainer2" type="HBoxContainer" parent="CanvasLayer/PanelContainer/MarginContainer/VBoxContainer"]
  65. layout_mode = 2
  66. theme_override_constants/separation = 10
  67. [node name="ColorRect" type="ColorRect" parent="CanvasLayer/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2"]
  68. custom_minimum_size = Vector2(128, 8)
  69. layout_mode = 2
  70. size_flags_vertical = 4
  71. color = Color(1, 1, 0, 1)
  72. [node name="Label" type="Label" parent="CanvasLayer/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2"]
  73. layout_mode = 2
  74. text = "Path edge-centered"
  75. horizontal_alignment = 1
  76. vertical_alignment = 1