What are Cardinal Directions?

Cardinal directions, refer to the points of a compass, North, South, East, and West. These are the 4 main points of a compass which will be used for checking what tiles are in those directions. Learning how to get the different directions will allow you to do pattern matching to place a tile in a spot based on what the pattern is.

Take a look at the image below. You will see the ASCII map string to the right, and on the left is the generated map which match the tiles in the ASCII string. When the map is generated in 3D space, the north facing direction (also the world forward direction) is going to be towards the first row created. So using the compass below, we can see the cardinal directions of the map. This is going to be very useful to work out the neighboring tiles.

World Forward Direction

The world forward direction is the X axis, which is red. When you click on an object in the scene view, you can see the directions using the gizmo (Red = X, Green = Y, Blue = Z). This is easier to see when the Translation (E to enable) tool is active. Make sure that you are in world space and not local space (T to toggle).

Scroll to Top