How can I detect which face of a cube was hit by line trace?

You could make each side of the cube a different object, but I’d imagine that this would complicate things in other areas.