Sweeping Out a Cube

The vertical motion is represented in two dimensions as the square moving diagonally "through" itself.