I came across a cute little trick while looking to optimize my physics routine in Magicore Anomala. In the routine, I need to check if each object is inbounds, and deactivate it if it goes out of bounds. Pretty typical situation, and we'd probably see it written as something like this: