How can a KinematicBody2D that doesn't move detect collisions?

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

I have a KinematicBody2D that stays stationary most of the time. If another KinematicBody2D moves into it by using move_and_collide(), the moving object will be able to know that it has encountered a collision since the method’s return value is not null. But I can’t figure out if there is a way to also know a collision occurred from within the stationary KinematicBody2D itself. Of course I could always send the messages between the bodies manually, but is there a built in way to detect this?