Bounds check on the rotating cube.