Just use one of the collision detection methods that fit. In case of a cube, the spherical approach might be sufficient. It won't be exact, because a sphere isn't a perfect approximation of a cube, but it should be good enough. Another way would be to detect the collisions yourself based on the cubes position. This is almost trivial if the cubes don't rotate and comes down to a few simple distance checks.