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

The GameTable

We will start by building the game's playing surface. This is a simple table top through which the moles will rise up. In our gray box environment, we have the luxury of using placeholders to determine the relative size, shape, and distances of environmental GameObjects. So instead of a table with nine holes, we'll use a simple cube:

  1. Create an empty GameObject titled MoleGame and place it at (0, 0, 0). This will be our main container.
  2. Create a second empty GameObject titled GameTable as a child of MoleGame.
  1. Create a new cube at (0, 0, 0) called Tabletop as a child of GameTable.
  2. Scale Tabletop to (1.1, 0.06, 1.1) and set the material to ForegroundGrey.

Remember this GameTable is only a placeholder. After testing the game's ...

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