Not sure why, but my 2D ridged body won't be destroyed. Is it because it is an animated sprite? I have attached my script below. Let me know if I have done something wrong?
extends RigidBody2D
func _ready():
set_fixed_process(true)
func _fixed_process(delta):
var bodies = get_colliding_bodies()
for body in bodies:
if body.is_in_group("Bricks"):
body.queue_free()