Rect Overlap
![rect overlap](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/rect_overlap-d81ba844e5abd0c5c2d39fe8df943a84.png)
Detect whether or not two rectangles boundaries are overlapping.
Input
Name | Data Type | Description |
---|---|---|
Enter | Exec | The input execution that triggers this node. |
A | Rect | The first rectangle. |
B | Rect | The second rectangle. |
Output
Name | Data Type | Description |
---|---|---|
True | Exec | Execute the next node when the two rectangles are overlapping. |
False | Exec | Execute the next node when the two rectangles are not overlapping. |
Example
![rect overlap example](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/rect_overlap_example-1d28d677dbe1ecf80b6f43864b691922.gif)
Change the rectangular image positions to change their overlap states to trigger the background show/off.
![rect overlap node](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/rect_overlap_node-c48ce8eb6b6e985db20ea02178be61b2.png)