If they are at the same zelevation the normal 2d overlapping conditions work well. If you compare the zelevation too it’s possible to check for collisions on that axis too.
Another way is to compare the distance with sqrt((x0-x1)^2+(y0-y1)^2+(z0-z1)^2) <32 which would treat the objects as spheres.
There are more complex methods, but for now it’s best to skim other posts or examples for working implementations.