mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-14 09:13:47 +00:00
Navigation obstacles
This commit is contained in:
parent
f962c21e84
commit
a01ed821b7
24 changed files with 170 additions and 94 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue