collision fix
This commit is contained in:
@@ -8,14 +8,23 @@ collision_layer = 3
|
||||
collision_mask = 3
|
||||
mass = 20.0
|
||||
contact_monitor = true
|
||||
max_contacts_reported = 4
|
||||
max_contacts_reported = 10
|
||||
script = ExtResource("1_e451a")
|
||||
|
||||
[node name="Asteroid" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("2_beklf")
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
|
||||
scale = Vector2(0.95, 0.95)
|
||||
polygon = PackedVector2Array(23, 10, 36, -11, 22, -32, 8, -43, -32, -40, -40, -25, -43, 1, -40, 23, -24, 41, 3, 43, 38, 19)
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
|
||||
[node name="CollisionPolygon2D2" type="CollisionPolygon2D" parent="Area2D"]
|
||||
scale = Vector2(0.95, 0.95)
|
||||
polygon = PackedVector2Array(39, 18, 28, 9, 39, -11, 23, -33, 9, -44, -26, -44, -33, -42, -43, -25, -45, 2, -43, 24, -26, 44, -1, 46, 38, 21)
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
[connection signal="body_exited" from="." to="." method="_on_body_exited"]
|
||||
[connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]
|
||||
[connection signal="body_exited" from="Area2D" to="." method="_on_area_2d_body_exited"]
|
||||
|
||||
Reference in New Issue
Block a user