If your game world isn’t infinite, you probably came across the edge-of-the-world issue:
How can you hide the edge of the world so players won’t notice it?
Here are some of the common ways I know.
If you know other ways, please post them!
- Fog - The most common way of hiding the edge. Cover the edges with fog and put an invisible collider there so the player won’t be able to walk through.
- Objects - If your scene takes place in an urban area, you can surround the area with buildings to hide the nothingness beyond them. Or, if your scene is in nature - a thick layer of trees and vegetation.
- Pits - Surround the world with pits or canyons. The player will be able to fall into them, but this will cause him to respawn. A great use of this method can be found in the game Warframe.