Deconstructing the First Person Controller object
Let's begin by looking at the objects that make up our First Person Controller (FPC) before we look into the components that make it work.
Click on the gray arrow to the left of First Person Controller in the Hierarchy in order to reveal the objects nested underneath. When objects are nested in this way, we say that there is a parent-child relationship. In this example, First Person Controller is the parent, while Graphics and Main Camera are its child objects. In the Hierarchy, child objects are indented to show their parenting, as shown in the following screenshot:
Parent-child issues
When considering nested or child objects, you should note that there are some key rules to remember.
A child object's position and rotation values are relative to their parent. This is referred to as the local position and local rotation. For example, you may consider your parent object to exist at (500, 35, 500) in world coordinates, but when selecting a child...