Game Development Reference
In-Depth Information
Save the script and playtest. This time when you run the Cube into the Box Pile, the boxes respond
to the impact of the Cube (Figure 7-25 ).
Figure 7-25. The smaller game object Cube pushing the Box Pile cubes
As always, have fun and experiment with the properties to see how the Cube's behavior changes.
Summary
In this chapter you began the construction of an obstacle course, using what you've learned so
far for the first obstacle. You added joints to your Physics knowledge base and designed some
pendulum obstacles. With your basic understanding of rigidbodies, colliders, joints, and animation
you learned to use the Ragdoll Wizard to apply ragdoll physics to your player character for a
satisfying, realistic demise. You've also added the Character Controller component to your menu of
options for controlling the player game object. In each of these categories you've learned about the
corresponding functions and variables, and how to use them in basic scripts. You've also added the
use of Tags and Layers to your general game development skill set.
That's quite an accomplishment! Hang in there, it's going to get even more fun and exciting as we
integrate these new physics capabilities with particle emitters and special effects in the next chapter.
 
Search WWH ::




Custom Search