I'm calling the following inside of my Player script, to try and detect nearby objects that can be interacted with:
var candidates = $Area2D.get_overlapping_bodies()
The documentation says that this "Returns a list of intersecting PhysicsBody2Ds", but the result Array only ever contains KinematicBody2D objects. I was hoping that it would return a list of both KinematicBody2D and StaticBody2D objects, but this doesn't seem to work.
Is this expected behavior? Is there some way to configure the Area2D or StaticBody2D objects to make this work?
I've uploaded a simple example project here.