collision fix
This commit is contained in:
@@ -8,7 +8,7 @@ collision_layer = 3
|
||||
collision_mask = 3
|
||||
mass = 5.0
|
||||
contact_monitor = true
|
||||
max_contacts_reported = 4
|
||||
max_contacts_reported = 10
|
||||
script = ExtResource("1_p0ukn")
|
||||
|
||||
[node name="Asteroid" type="Sprite2D" parent="."]
|
||||
@@ -17,5 +17,12 @@ texture = ExtResource("1_u87q6")
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
|
||||
polygon = PackedVector2Array(12, -1, 6, -6, 5, -13, -8, -12, -12, -5, -12, 4, -6, 13, -2, 10, 2, 14, 12, 3)
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
|
||||
[node name="CollisionPolygon2D2" type="CollisionPolygon2D" parent="Area2D"]
|
||||
polygon = PackedVector2Array(14, -1, 9, -6, 8, -13, 5, -15, -9, -13, -12, -9, -14, 3, -11, 8, -6, 14, -2, 14, 3, 15, 14, 3)
|
||||
|
||||
[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