Skip to content

Commit

Permalink
Update 2D navigation demo NavigationPolygon for 4.3+ (#1135)
Browse files Browse the repository at this point in the history
Updates NavigationPolygon with data that has compatibility with newer 2D navigation mesh baking.
  • Loading branch information
smix8 authored Nov 16, 2024
1 parent 1e02914 commit 0fb1b4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 2d/navigation/navigation.tscn
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[gd_scene load_steps=4 format=3 uid="uid://bjgad00c2xiuc"]

[ext_resource type="NavigationPolygon" uid="uid://prlt4stfk6uh" path="res://navigation_polygon.res" id="2_lph0a"]
[ext_resource type="Texture2D" uid="uid://bk26gi6qsuh18" path="res://map.png" id="2_nxfkp"]
[ext_resource type="NavigationPolygon" uid="uid://bk5r48dcijlqt" path="res://navigation_polygon.res" id="3_6c0vu"]
[ext_resource type="PackedScene" uid="uid://ct7veakwiei3h" path="res://character.tscn" id="4_n6iop"]

[node name="Navigation" type="Node2D"]
Expand All @@ -12,7 +12,7 @@ position = Vector2(400, 302)
texture = ExtResource("2_nxfkp")

[node name="NavigationRegion2D" type="NavigationRegion2D" parent="."]
navigation_polygon = ExtResource("3_6c0vu")
navigation_polygon = ExtResource("2_lph0a")

[node name="Character" parent="." instance=ExtResource("4_n6iop")]
position = Vector2(211, 141)
Binary file modified 2d/navigation/navigation_polygon.res
Binary file not shown.

0 comments on commit 0fb1b4e

Please sign in to comment.