Game Development Reference
In-Depth Information
Chapter 7
Using Advanced Physics
Concepts
In this chapter, you will start building an obstacle course using what you've learned so far and
adding new physics concepts, including using joints in the obstacle course, ragdoll physics for the
player, and of course new functions and scripts to bring it all together.
Setting Up the Obstacle Course
In the Project panel, select Assets ➤ Sample Assets ➤ Sample Scenes ➤ Scenes and open Third
Person Character. In the editor top menu, select File ➤ Save Scene as; name the new scene
Obstacle Course. In the Hierarchy, delete the Obstacles parent game object, which also deletes all of
its children. In the Scene view at this point you have only the player character standing on the floor.
In the Project panel's Assets ➤ Sample Assets ➤ Prototyping ➤ Prefabs ➤ Compound Prefabs
folder, find the Elevated Track, drag it to the Scene view, and set its Transform Position coordinates
to (0, 0, 22). Your player character should already have a position of (0, 0, 0) and be facing the ramp
of the Elevated Track when you select Play (Figure 7-1 ).
187
 
Search WWH ::




Custom Search