Unity Virtual Reality Projects by Jonathan Linowes (Packt Publishing 2015)

Unity Virtual Reality Projects by Jonathan Linowes (Packt Publishing 2015)

Author:Jonathan Linowes (Packt Publishing, 2015)
Language: eng
Format: epub
Publisher: Packt Publishing


Unity Standard Assets

The Characters package in Unity Standard Assets comes with a number of third- and first-person character prefab objects. These prefab objects are compared in the following tables:

Prefab

Components

Let's discuss this in more detail.

ThirdPersonController

We've already used both of the third-person prefabs, ThirdPersonController and AIThirdPersonController, in Chapter 2, Objects and Scale, and Chapter 4, Gaze-based Control, respectively.

The ThirdPersonController prefab has child objects that define the character's body, namely, our friend Ethan. He is a rigged avatar (from the .fbx file), which means that humanoid animations can be applied to make him walk, run, jump, and so on.

The ThirdPersonController prefab uses a Rigidbody for physics and Capsule Collider for collision detection.

It has two scripts. A ThirdPersonUserControl script takes user input, such as keyboard presses, and tells the character to move, jump, and so on. A ThirdPersonCharacter script implements physics behind movements and calls the animations that are needed for running, crouching, and so on.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.