O'Reilly logo

Virtual Reality Blueprints by John Williamson, Charles Palmer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Constructing gameplay boundaries

In the game, our player will battle for their life from a stationary position. The scene is a typical unrealistic Hollywood back alley, which sits at the junction of three pathways. Every few seconds, a zombie will be spawned in one of the pathways and the creature will then move toward the player.

We need to create an environment that facilitates the zombie action while also focusing the player's attention on the task at hand. In the following steps, we will construct the scene elements needed to facilitate our gameplay. A ground plane and several cubes will be used to define boundaries for the gameplay:

  1. Create an empty GameObject called Environment. Make sure it is sitting at 0,0,0.5.
  2. Add the following ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required