Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | rico345100 |
I have multiple rigidbody object floating away in the space. When they hit each other, they push away each. I want to destroy object if they hit something, but connect body_entered signal won’t invoked when they impact each other:
func _ready():
connect("body_entered", self, "destroy")
func destroy(body):
print("HIT!")
queue_free()
How do I check Rigidbody hit something?