Game Development Reference
In-Depth Information
Illustration 4: The hierarchy of the scene with the relations between the objects
If you move the ground object to another position in the scene, you'll notice that its children
move with it. However, examining position values in the inspector reveals that only the
values of the ground object position change, while the position values of the children remain
the same. Although this is unexpected, it can be justified by recognizing that the position
values of the children are not absolute, but rather relative to the position of their parent. In
other words, what you see in the inspector is the position of the child inside the local space
of its parent, rather than the world space . The same applies to scale and rotation of the child.
We are going to discuss these concepts later on, so don't worry about them at the moment.
Search WWH ::




Custom Search