body_entered signal not working

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Drai3Seltor

I am trying to build a space shooter game, with my ship being able to shot missiles and lasers and the enemy too.
Both missiles and lasers are RigidBody2D, and they interact well with the ships, but when they collide with each other they just float there in space instead of exploding.

I am using a signal when the laser collide, but when a laser or missile collide with each other it does not work; this is the piece of code I am using:

func _on_Laser_body_entered(body):
body.queue_free()
queue_free()

What am I doing wrong?

:bust_in_silhouette: Reply From: ramazan

Rigidbody2D “inspector”
Contact Monitor = true
and
Contacts Reported >= 1