Game Development Reference
In-Depth Information
Figure 7-12. The Terrain with its simple texture
Revisiting the Gnomatic Garden Defender
While you can add and arrange assets to populate an environment, you must test the environment
with at least a proxy version of the game's character to see how well the character travels. This will
tell you where there are access or distance problems as well as camera issues. It will also set you up
to be able to design an occlusion-culling system.
In the previous chapter, you had the GardenGnome moving forward using the imported animation
to direct the movement. Now that you have a more challenging environment to explore, you will be
turning control of the little gnome over to the player. When you last tinkered with the little fellow, you
had just turned off Apply Root Motion in the Animator component.
With the root transforms deactivated, you will use the First Person Controller component as a quick
means to drive the character around the garden.
1.
Drag the GardenGnome prefab into the staging area.
2.
Focus in on the GardenGnome.
3.
From the Standard Assets folder, Character Controllers, drag the First Person
Controller prefab into the Hierarchy view.
4.
Assign the Player tag to it so it will be able to activate the garden gates.
5.
From the GameObjects menu, use “Move to View” to position it over the
gnome.
 
Search WWH ::




Custom Search