Sending a signal to itself

You can emit signals as you would normally, connecting to your own signal is as follows, you could also use self if that makes more sense to you, all the example lines are equivalent.

body_entered.connect(_on_body_entered)
self.body_entered.connect(_on_body_entered)
self.body_entered.connect(self._on_body_entered)
2 Likes