The player is made up of a single GameObject. This object will contain the first-person camera, a collider, and a light source. Our GameObject will not need a light source until we address the environment in the Setting the mood section, but we can create the other components by following the steps listed here:
- Create an empty GameObject in the Hierarchy panel, rename it Player, and move it to 0,1,0.5 using the Inspector. This object will house the VR camera and scripts needed for player control.
- Change the Player tag from Untagged to Player using the Inspector panel.
- With the object still selected, add a Capsule Collider by clicking the Add Component button in the Inspector window. Enter capsule in the search ...