Help me align this cubes, please!

in worldspace, No… in localspace yes. my base cube will always be at 90. (in my game)
I am working on the worldspace issue now. It should just be a matter of rounding to the orientation of the base cube…i think. I posted a vid link.