Wall blocking for walls in .glb file using Box3

Can someone help me code the wall blocking for walls in the .glb file and have a cube that navigates with keyboard events?

Example: Assume GLB file have multiple children of walls named Wall1,2,3… and those walls should add as blockers by collision detection to a cube created as a player. I have seen many tutorials that I didn’t find anyone help to resolve.