I'm trying to have a node change position, and then within the same frame be able to be detected by an Area2D that it has now moved into. My code in the test I ran looks as follows:
onready var a = $a
onready var b = $b
a.position = b.position
The first time I hit enter, I get a blank array. Every time afterwards I get an array with a ref to b in it. Clearly the collision isn't being updated on the same frame as the motion.
I've tried using
force_update_transform() in between the position change and the
get_overlapping_areas() call, but that doesn't change anything. I'd appreciate any suggestions as to what I should try.