I need a script that checks if one area is inside the other even if they never touch each others borders. I have scenario where one area teleports in to another one and I don’t know how to detect when that happens.
Yes, but those activate only when the borders of the areas are actively crossing each other. I wanted to know if there is a way to detect if let’s say really small area 3D appears inside a really big area 3D without ever touching each others borders.
the area_entered signal and get_overlapping_areas would detect a smaller area full enclosed in itself, even if suddenly appearing, it is not based on crossing borders.
It doesn’t seem so. I have tested it before and even with “print(detection_area.get_overlapping_areas())”
but when the smaller area is fully enclosed in a big one this just prints out empty array.
It only prints out the area when the borders are crossing.
The purple area leading from the camera is the big area. And the t-posing dude has the small area on him, he also has the script with “print(detection_area.get_overlapping_areas())”.
Yea you are right.
I previously avoided this solution because I assumed it would have some issues I wanted to avoid but now I see that it is working ok.
Thank you.