瀏覽代碼

Fix inner corner collision miss

Bug was due to contact report limit. In a corner collision, if only one
contact is reported out of the two who really happen, one brick is
keeping its life point.
DricomDragon 3 年之前
父節點
當前提交
2e29492325
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      godot/scenes/Ball.tscn

+ 1 - 1
godot/scenes/Ball.tscn

@@ -18,7 +18,7 @@ mode = 2
 physics_material_override = SubResource( 1 )
 gravity_scale = 0.0
 continuous_cd = 2
-contacts_reported = 1
+contacts_reported = 2
 linear_velocity = Vector2( 100, 100 )
 linear_damp = 0.0
 script = ExtResource( 2 )