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:
![](https://static.packt-cdn.com/products/9781839217616/graphics/assets/f8ba8cee-b969-46a1-a07d-047acb071179.png)
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.