Navigation obstacles

This commit is contained in:
Marco 2025-03-25 10:54:19 +01:00
commit a01ed821b7
24 changed files with 170 additions and 94 deletions

View file

@ -23,7 +23,7 @@ animations = [{
size = Vector2(14, 28)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ss2y0"]
size = Vector2(12, 24)
size = Vector2(12, 16)
[node name="Broken Vertical Box" type="Area2D" groups=["Destroyable"]]
y_sort_enabled = true
@ -52,5 +52,10 @@ collision_mask = 10
gravity_scale = 0.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
position = Vector2(0, -3)
position = Vector2(0, 1)
shape = SubResource("RectangleShape2D_ss2y0")
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
visible = false
radius = 8.36
vertices = PackedVector2Array(-6, -16, 6, -16, 6, 0, -6, 0)