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

Building the game booth

Next, we will construct the generic hut which will be used to house each of the midway booths. This quick mock-up would be replaced during the refinement phase, but for now we just need a shape which sets the scale for each midway game:

  1. Create another empty GameObject at the root level, rename it Booth, and set its position to (0,0,0).
  2. Create eight cubes as children of the Booth GameObject and transform them using the following settings:

Position

Rotate

Scale

WallBack

0, 1, 1.5

0, 0, 0

4, 2.4, 0.05

WallLeft

-2, 1, 0.5

0, 90, 0

2, 2.4, 0.05

WallRight

2, 1, 0.5

0, 90, 0

2, 2.4, 0.05

Roof

0, 2.4, 0

90, 0, 0

4.1, 3, 0.05

ColumnLeft

-2, 1, -1.4

0, 0, 0

0.1,

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