Time for action - multiple erections
We're going to erect four invisible walls around the play area to keep the heart reined in.
- Click on GameObject | Create Other | Cube.
- Rename the new Cube GameObject Wall Back.
- Give the Cube these transform settings in the Inspector panel:
Position X:-0.15 Y: 1.3 Z: 1.6
Rotation: X: 0 Y: 90 Z: 0
Scale: X: 0.15 Y: 12 Z: 6
- Uncheck the Mesh Renderer checkbox in the Inspector panel to make the back wall invisible to the player.
- Repeat these steps to create three more Cubes called Wall Front, Wall Left, and Wall Right. These are the settings I used to place the other walls, but feel free to tweak them to suit your ...