Many of the 3D recipes in this chapter are built on this basic project, which constructs a scene with a textured terrain, a Main Camera, and a red cube that can be moved around by the user with the four directional arrow keys:
Figure 9.5 – Basic 3D scene with a player-controlled cube
The bounds of movement of the cube will be constrained using the same technique that we used in the previous 2D recipe.