Chapter 4. Player Characters and Further Scripting
In this chapter, we'll expand the island scenario that we created in the previous chapter by taking a look at the construction of the player character that you have already added to the island. This object is an example of a first-person perspective player character. But how does its combination of objects and components achieve this effect?
We will take a look under the hood of this prefab while looking at how each of the components work together to create our player character.
As we have already added our prefab to the game scene, it would be all too easy to continue with the development and accept that this object just works. Whenever you are implementing any externally created assets, you should make sure that you always try to understand how they work—even if you cannot recreate them yourself just yet. Otherwise, if anything needs adjusting or goes wrong, you'll be in the dark, which can be detrimental when asking others for help.
With...