feat: fix the block pushing; add new groups for walls and pushable objects;

This commit is contained in:
2026-09-18 10:39:03 +02:00
parent 8ba607d1b0
commit 2b4b54612f
5 changed files with 13 additions and 5 deletions
+2 -1
View File
@@ -9,8 +9,9 @@ size = Vector2(16, 16)
atlas = ExtResource("1_83tkd")
region = Rect2(127.859436, 47.936436, 16.21347, 16.062302)
[node name="Block" type="RigidBody2D" unique_id=2096944035]
[node name="Block" type="RigidBody2D" unique_id=2096944035 groups=["pushable"]]
gravity_scale = 0.0
linear_damp = 10.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=195703280]
shape = SubResource("RectangleShape2D_bqpwv")