Game Development Reference
In-Depth Information
Summary
You've accomplished a great deal in this chapter, learning about Rigidbodies and the physics engine,
customizing game object behavior with Physic Materials, and game object interaction with Colliders
and Triggers.
The OnCollision() and OnTrigger() functions are new additions to your scripting knowledge base,
along with functions for applying forces to the game object, directing the camera to follow a game
object, changing the game object the camera is following, changing the properties of a component,
enabling/disabling a component, using the ! logic operator to flip boolean values, and avoiding errors
by using conditionals.
You've expanded the application of your script code from the game object the script is attached
to, onward to affecting a secondary object co-involved in a collision and beyond, to accessing any
game object in your scene.
Best of all, you're taking what you've learned so far and starting down the path of designing
functional game prototypes. Great job! There's more great stuff ahead, including more physics with
joints and ray casting, special effects like explosions and sound, and pulling all this together within
the rules of a game to go from playing around with a scene to playing and winning a fully functional
game. Woo!
 
Search WWH ::




Custom Search