Time for action – setting the scene
To begin with, we'll use the basic scene elements from Chapter 3, Diving into Development, to quickly create a stage to start developing our game on. Perform the following steps to set the scene:
Open a new project in Unity and name it
RollingMarble
.Create a directional light to illuminate the scene and set its position to
0
,0
,0
.You may recall that the position of directional lights doesn't matter, but keeping things at the origin point of the scene makes it easy to find them when they've been highlighted.
Note
In two-dimensional coordinate systems, the value of 0 is sometimes used as a low-end boundary or the bottommost value. However, most 3D engines use 0 as the very center of the game world, instead of as an outlier. If you set an object's X, Y, and Z coordinates to 0, 0, and 0, its pivot point will be in the exact center of your scene.
After adding the light, add a cube from the Create menu in your Hierarchy menu. This cube can be used as the first...