Chapter 7. Instantiation and Rigidbodies

In this chapter, we'll expand upon the two crucial concepts in 3D game design that we looked at in Chapter 2. We will take the abstracted game mechanic of aiming and 'throwing' objects and put it into the context of our island game by creating a coconut shy (or coconut shie) game that the player can interact with.

When you first begin to build game scenes, you'll realize that not all of the objects required within any given scene would be present at the start of the game. This is true of a wide variety of game genres, like puzzle games; consider the blocks in Tetris for example. In Tetris, puzzle pieces of random shapes are created or instantiated at the top of the screen at set intervals because they cannot ...

Get Unity 3.x Game Development Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.