Introducing 3D Mazes
Explore how to create three-dimensional mazes by stacking two-dimensional grids and connecting levels. Understand the challenges of maintaining perfect mazes when linking layers and discover how to extend grids into three dimensions to generate complex maze structures.
We'll cover the following...
Defining a 3D maze
So, zero-dimensional cells combine to form one-dimensional rows, and one-dimensional rows stack to form two-dimensional grids. It should follow, then, that two-dimensional grids may be stacked to form three-dimensional grids, which is exactly the case, as the following figure shows.
When we think of each of these separate 2D grids as levels within the larger 3D grid, it becomes clear that each cell in such a grid must be addressed by three coordinates: row, column, and level. Three coordinates mean three dimensions.