Creating our player
Having the basis of our world is great, but if we don't have a player, it doesn't matter how nice the level looks. In this section, we will create the actual player that will walk around and move in the world:
Let's first create a Capsule by selecting GameObject | 3D Object | Capsule.
Right now, the capsule is too big to fit our world due to being larger than our blocks. To easily fix this, we will set the Scale of our Capsule to be (0.4, 0.4, and 0.4). Also, set its Position to (1, 2, 0):
Now, we want our player to use gravity and forces, so we will need to add a Rigidbody component by going to Component | Physics | Rigidbody.
Note
The 2D and 3D Physics systems are not interchangeable as in either can be used but they cannot interact with each other. You'll need to choose one or the other when working on a project. We're using 3D right now, so you can have a good idea of the differences between 2D and 3D and what to look out for.
Next, because we are doing a 2D game, we don...