Detect GUI overlap/collision

Hello everyone,

I know that Babylonjs support the way to detect mesh collision like this link below.

however, is it possible we can detect whether GUI is overlapping the other GUI (text guiTextBlock or Button) link image below? I’ve survey for these day, but still having no idea. Please help.

Image 1

If you are using planes with an advanced dynamic texture on it, you could check if the planes intersect.

If you are using a full screen ADT then I don’t think there’s any way to know if a control is intersecting another control except by checking yourself that the 2D bounding box of each control is intersecting.

hello Evgeni_Popov

thanks the reply. I tried to use 2D bounding box of each control to check collision.
and it’s works.