Godot Version
4.7.1
Question
So I have a ridgd body and an area 2d I am trying to detect when the ridged body is in the area 2d but i cant do body entered because the object is being dragged so I am trying to do when the user stop dragging and if its in area 2d.
func check_box() -> void:
for area in get_tree().get_nodes_in_group("sorting_boxes"):
if area.overlaps_body(self):
print("Box detected: ", area.types, " | Item: ", type)
if area.types == type:
freeze = false
gravity_scale = 1
return
else:
reset_item()
return