Why is Line Trace still detecting objects in a position, after they've moved away?

Ok, try to disable collision of your boxes while you move/rotate them and enable it again when they finish moving. Maybe that will refresh the colliders.