To prevent them to block one another.
@@ -7,6 +7,7 @@
radius = 34.9763
[node name="Chicken" type="KinematicBody2D" groups=["chicken"]]
+collision_layer = 2
script = ExtResource( 2 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
radius = 15.9444
[node name="Player" type="Area2D"]
+collision_mask = 3
script = ExtResource( 1 )
__meta__ = {
"_edit_group_": true
@@ -11,6 +11,7 @@ bounce = 0.9
radius = 33.1812
[node name="Wheel" type="RigidBody2D" groups=["wheel"]]
mass = 0.5
physics_material_override = SubResource( 2 )
angular_damp = 0.0
@@ -50,6 +50,11 @@ window/size/resizable=false
window/stretch/mode="2d"
window/stretch/aspect="keep"
+[layer_names]
+
+2d_physics/layer_1="entities"
+2d_physics/layer_2="chickens"
[physics]
2d/default_gravity=0