Reader small image

You're reading from  Unity Game Development Essentials

Product typeBook
Published inOct 2009
Reading LevelIntermediate
PublisherPackt
ISBN-139781847198181
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Will Goldstone
Will Goldstone
author image
Will Goldstone

Will Goldstone is a longstanding member of the Unity community and works for Unity Technologies as a Technical Support Associate, handling educational content and developer support. With an MA in Creative Education, and many years experience as a lecturer in higher education, Will wrote the first ever Unity book, the original Unity Game Development Essentials, and also created the first ever video tutorials for the package. Through his sites http://www.unity3dstudent.com and http://learnunity3d.com Will helps to introduce new users to the growing community of developers discovering Unity every day.
Read more about Will Goldstone

Right arrow

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...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Unity Game Development Essentials
Published in: Oct 2009Publisher: PacktISBN-13: 9781847198181

Author (1)

author image
Will Goldstone

Will Goldstone is a longstanding member of the Unity community and works for Unity Technologies as a Technical Support Associate, handling educational content and developer support. With an MA in Creative Education, and many years experience as a lecturer in higher education, Will wrote the first ever Unity book, the original Unity Game Development Essentials, and also created the first ever video tutorials for the package. Through his sites http://www.unity3dstudent.com and http://learnunity3d.com Will helps to introduce new users to the growing community of developers discovering Unity every day.
Read more about Will Goldstone