mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-10 02:35:54 +00:00
Navigation obstacles
This commit is contained in:
parent
f962c21e84
commit
a01ed821b7
24 changed files with 170 additions and 94 deletions
|
|
@ -46,3 +46,7 @@ gravity_scale = 0.0
|
|||
visible = false
|
||||
position = Vector2(0.5, -1)
|
||||
shape = SubResource("RectangleShape2D_ss2y0")
|
||||
|
||||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -10, 6, -10, 6, 5, -6, 5)
|
||||
|
|
|
|||
|
|
@ -57,3 +57,8 @@ offset_left = -8.0
|
|||
offset_top = -8.0
|
||||
offset_right = 8.0
|
||||
offset_bottom = 8.0
|
||||
|
||||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -7, 6, -7, 6, 7, -6, 7)
|
||||
|
|
|
|||
|
|
@ -58,4 +58,4 @@ shape = SubResource("RectangleShape2D_ss2y0")
|
|||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -9, 6, -9, 6, 2, -6, 2)
|
||||
vertices = PackedVector2Array(-6, -7, 6, -7, 6, 7, -6, 7)
|
||||
|
|
|
|||
|
|
@ -50,3 +50,8 @@ gravity_scale = 0.0
|
|||
visible = false
|
||||
position = Vector2(0.5, -1)
|
||||
shape = SubResource("RectangleShape2D_ss2y0")
|
||||
|
||||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -7, 6, -7, 6, 7, -6, 7)
|
||||
|
|
|
|||
|
|
@ -58,4 +58,4 @@ shape = SubResource("RectangleShape2D_ss2y0")
|
|||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -9, 6, -9, 6, 2, -6, 2)
|
||||
vertices = PackedVector2Array(-6, -7, 6, -7, 6, 7, -6, 7)
|
||||
|
|
|
|||
|
|
@ -50,3 +50,8 @@ gravity_scale = 0.0
|
|||
visible = false
|
||||
position = Vector2(0.5, -1)
|
||||
shape = SubResource("RectangleShape2D_ss2y0")
|
||||
|
||||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -7, 6, -7, 6, 7, -6, 7)
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ gravity_scale = 0.0
|
|||
position = Vector2(0, -3)
|
||||
shape = SubResource("RectangleShape2D_ss2y0")
|
||||
|
||||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
[node name="NavigationObstacle2D2" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -9, 6, -9, 6, 2, -6, 2)
|
||||
vertices = PackedVector2Array(-6, -7, 6, -7, 6, 7, -6, 7)
|
||||
|
|
|
|||
|
|
@ -50,3 +50,8 @@ gravity_scale = 0.0
|
|||
visible = false
|
||||
position = Vector2(0.5, -1)
|
||||
shape = SubResource("RectangleShape2D_ss2y0")
|
||||
|
||||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -7, 6, -7, 6, 7, -6, 7)
|
||||
|
|
|
|||
|
|
@ -58,4 +58,4 @@ shape = SubResource("RectangleShape2D_ss2y0")
|
|||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -9, 6, -9, 6, 2, -6, 2)
|
||||
vertices = PackedVector2Array(-6, -7, 6, -7, 6, 7, -6, 7)
|
||||
|
|
|
|||
|
|
@ -50,3 +50,8 @@ gravity_scale = 0.0
|
|||
visible = false
|
||||
position = Vector2(0.5, -1)
|
||||
shape = SubResource("RectangleShape2D_ss2y0")
|
||||
|
||||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -7, 6, -7, 6, 7, -6, 7)
|
||||
|
|
|
|||
|
|
@ -56,3 +56,8 @@ gravity_scale = 0.0
|
|||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
||||
position = Vector2(0, 1.5)
|
||||
shape = SubResource("RectangleShape2D_ss2y0")
|
||||
|
||||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -15, 6, -15, 6, 0, -6, 0)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -58,4 +58,4 @@ shape = SubResource("RectangleShape2D_ss2y0")
|
|||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -9, 6, -9, 6, 2, -6, 2)
|
||||
vertices = PackedVector2Array(-6, -7, 6, -7, 6, 7, -6, 7)
|
||||
|
|
|
|||
|
|
@ -50,3 +50,8 @@ gravity_scale = 0.0
|
|||
visible = false
|
||||
position = Vector2(0.5, -1)
|
||||
shape = SubResource("RectangleShape2D_ss2y0")
|
||||
|
||||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -7, 6, -7, 6, 7, -6, 7)
|
||||
|
|
|
|||
|
|
@ -58,4 +58,4 @@ shape = SubResource("RectangleShape2D_ss2y0")
|
|||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -9, 6, -9, 6, 2, -6, 2)
|
||||
vertices = PackedVector2Array(-6, -7, 6, -7, 6, 7, -6, 7)
|
||||
|
|
|
|||
|
|
@ -50,3 +50,8 @@ gravity_scale = 0.0
|
|||
visible = false
|
||||
position = Vector2(0.5, -1)
|
||||
shape = SubResource("RectangleShape2D_ss2y0")
|
||||
|
||||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -7, 6, -7, 6, 7, -6, 7)
|
||||
|
|
|
|||
|
|
@ -47,3 +47,7 @@ gravity_scale = 0.0
|
|||
visible = false
|
||||
position = Vector2(0.5, -1)
|
||||
shape = SubResource("RectangleShape2D_ss2y0")
|
||||
|
||||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -7, 6, -7, 6, 7, -6, 7)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue